Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: zero to the power zero

by zentara (Archbishop)
on Feb 19, 2007 at 14:51 UTC ( #600863=note: print w/replies, xml ) Need Help??


in reply to Re: zero to the power zero
in thread zero to the power zero

Use math
/* gcc -o zero zero.c -lm */ #include <stdio.h> #include <math.h> int main() { int i = 0; int j = 0; int k; k = pow(i,j); printf("%d\n",k); }
Output: 1

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://600863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2016-09-26 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.