M

Mr. Dubey • 52.30K Points
Coach

Q. Which of the following statements is false about recursion?

(A) every recursive function must have a base case
(B) infinite recursion can occur if the base case isn’t properly mentioned
(C) a recursive function makes the code easier to understand
(D) every recursive function must have a return value
Correct : Option (D)

Explanation:
 a recursive function needn’t have a return value.

Share

Discusssion

Login to discuss.

Loading Comments....