actually im reading a book about C.
in this book there is a lesson called functions.
i guess that n is going to be the exponent of m so far.
the following code is directly from the book:
i need help with this code because i dont understand it.
int power ( int m, int n);
for (i=0; i<10;++i)
printf("%d %d %d\n", i, power(2, i), power(-3, i));
int power(int base, int n)
int i, p;
p = p * base;
an explanation of the whole code line by line would be very appreciated.