Home / MCQ Bank / Computer
Computer Miscellaneous On Data Structures

What is the base case for the following 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; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • if(n == 0)

Related Computer Questions

Which NLP task involves identifying and analyzing the meaning and relationships between words in a sentence or document? Which of these methods is called when observed object has changed? In Java, can a class implement multiple interfaces? Which of the following are the features of an HTTP request? Magnetic storage devices can represent binary 0 by the absence of?