Can anyone please tell me what does the this Function do? I understand everything till the "(n * GetPower(n, power - 1))" part. I just can't understand it. I do realise what the "n * " does, it multiplies N to the other side, and I also get what "GetPower" does (Recursive function) but I don't understand what "(n, power - 1) does. Anyone care to explain?
Many thanks again,
metalclunch.
unsigned long int MyFunction(unsigned short int n, unsigned short int power) {
if(power == 1)
return n;
else
return (n * GetPower(n, power - 1));
}