Perhaps this is just for showing. While reading K&R, the beginning of 1.7 Functions shows an example of a power function. The second line of code declares int power(int m, int n);
Why is the first argument, n
, named differently than the first argument, base
, in the source of the function:
int power(int base, int n)
{
...
}
Is this simply to show that the names do not need to be the same? And should this practice be avoided? Why or why not?