Vidyalelo
Data Structure · Q308

Miscellaneous on Data Structures

Programming · Data Structure · question 308

Q308

How many times is the recursive function called, when the following code is executed? 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
Answer
D.
12

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board