G

Gopal Sharma • 38.32K Points
Coach

Q. Which of the following statements about recursion in C++ is true?

  • (A) A function cannot call itself
  • (B) Recursion always results in an infinite loop
  • (C) Recursive functions must have a base condition
  • (D) Recursion is not allowed in C++
  • Correct Answer - Option(C)
  • Views: 42
  • Filed under category C++

Explanation by: Gopal Sharma
A recursive function must have a base condition to prevent infinite recursion.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics