Q. What is the purpose of a return statement in a function?
β
Correct Answer: (D)
Stops executing the function and returns the value
Explanation: The return statement causes the function to stop executing and to return the value of its expression (if any) to the caller.