Re: [algogeeks] Re: Find Power(N,N),

2012-05-17 Thread Piyush Khandelwal
@ pankaj joshi: Hi ... The following code will do it for you. Go through the code, execute it, if u dont get the logic revert back to me. // code begins.. #includestdio.h #define MAX 1 void factorialof(int); void multiply(int); int length = 0; int fact[MAX]; int main(){ int

[algogeeks] Re: Find Power(N,N),

2012-05-16 Thread Don
How about exp(log(n)*n); Don On May 14, 10:58 pm, pankaj joshi joshi10...@gmail.com wrote: Hi All, I have written a program to find out n^n(n power n), long long unsigned int power(int n, int i) { if(i == 1) { return n;} else { if(i%2 != 1) { long long unsigned int mul; mul =

Re: [algogeeks] Re: Find Power(N,N),

2012-05-16 Thread Prem Krishna Chettri
Yes U are Correct.. in Such cases the Compiler itself has overcome ( or tried to overcome) the architecture limitations to some extends but what will happen if U need say 128 or 256 or more values?? Again U hv your compiler restricted limitation right? So that what I am talking about is..