How many times is the recursive function called, when the following code is executed? [code] void my_recursive_function(int n) { if(n

How many times is the recursive function called, when the following code is executed?
Code:
void my_recursive_function(int n)
{
     if(n == 0)
     return;
     printf("%d ",n);
     my_recursive_function(n-1);
}
int main()
{
     my_recursive_function(10);
     return 0;
}
A. 9
B. 10
C. 11
D. 12
 

Tìm kiếm

Back
Top