Home / MCQ Bank / Computer
Computer Miscellaneous On Data Structures

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; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 11

Related Computer Questions

Which of the following function can be used to flag predictors for removal? What is the range of octal notation (\nnn)? What is the method used to define a class variable in Ruby? Point out the correct statement. What is a callback function in the context of delegates and events in C#?