Can anybody show me why this works??
I found this recursive function code in a C book. I do not understand why it works. It seems to me that there is no variable in the function the keep up with the results, yet it works perfectly! Just curious.
Thanks to anyone who can trace this program and show me what it is doing that I cannot see.
int three_powered(int power);
int a=0, fin;
puts("Enter an exponent: ");
printf("\n3 to the power of %d is %d",a,three_powered(a) );
puts("\n\nEnter a digit...");
int three_powered(int power)