What is the purpose of a return statement in a function?
Returns the value and stops the executing the program
Stops executing the function and returns the value
Returns the program back to the start of the function and continues to execute statements
Returns the value and continues executing rest of the statements, if there are any
1 answer
Returns the value and stops the executing the program