In a recursive function, what is the purpose of the return statement?

Practice Questions

Q1
In a recursive function, what is the purpose of the return statement?
  1. To terminate the program
  2. To return control to the caller
  3. To call the function again
  4. To print the output

Questions & Step-by-Step Solutions

In a recursive function, what is the purpose of the return statement?
No concepts available.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely