- A A recursive function cannot call itself.
- B A recursive function must have a base case to terminate the recursion.
- C A recursive function must have a return type of void.
- D A recursive function cannot be called from another function.
- Share this MCQ
Answer:
B
Share this MCQ
Answer: b. A recursive function must have a base case to terminate the recursion.
Explanation: A recursive function is a function that calls itself. To prevent infinite recursion, a recursive function must have a base case that terminates the recursion. The base case is a condition that is tested at each recursive call to determine whether the recursion should continue or terminate.
Click me to Read more Question & Answer of Function in C LanguageShare this MCQ