What is the purpose of the 'return' statement in a function?

Practice Questions

Q1
What is the purpose of the 'return' statement in a function?
  1. To end the program
  2. To return a value from a function
  3. To declare a variable
  4. To create a loop

Questions & Step-by-Step Solutions

What is the purpose of the 'return' statement in a function?
No concepts available.
Soulshift Feedback ×

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

Not likely Very likely