Consider the following function.
void myfun (int n)
{
if (n > 0)
myfun (n – 2);
printf(“%d”, n);
}
what is printed by the call myfun (4) ?
1
0 2
2
0 2 4
3
2 4
4
4 2 0
Consider the following function.
void myfun (int n)
{
if (n > 0)
myfun (n – 2);
printf(“%d”, n);
}
what is printed by the call myfun (4) ?