Doubt in question 4.how its ans is 12? wont it be 11?

How many times is the recursive function called, when the following code is executed?

void myrecursivefunction(int n)
{
if(n == 0)
return;
printf("%d ",n);
myrecursivefunction(n-1);
}
int main()
{
myrecursivefunction(10);
return 0;
}

hello @mansi25

answer should be 11 only .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.