Sheldon Simms <sh**********@yahoo.com> wrote in message news:<pa****************************@yahoo.com>...

unsigned long long may get you a bigger integer type. After

that you have to use a "bignum" library. One such library is:

http://www.swox.com/gmp/

-Sheldon

Thanks for your suggestion.

If I turn to BigNum, the function will become

BigNum * c(int n, int k){

if(n == k || k == 0){

/* Let BigNum = 1 */

return BigNum;

}else{

return BigNumAdd(c(n-1, k) + c(n-1, k-1));

/* The prototype of the function BigNumAdd will be

* BigNum * BigNumAdd(BigNum *a, BigNum *b) */

}

}

If I want to write my own BigNum for this particular program, which

will make this program small and clear for my other classmates to

discuss, then the BigNum stucture and the function BigNumAdd are the

only two things I need to worry about.

So, can someone tell me how to implement those?