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; }
Teacher I don’t get why ans is 12.I guess recursion is called 11 time.Don’t get where it is called 12th time.