Computer Science for IGCSE & O level - Programming (Section 12 - No. 1)
What is the role of the 'return' statement in a function?
To start the function.
To call another function.
To end the function and return a value.
To declare a variable inside the function.
Explanation
The 'return' statement provides a mechanism for a function to send back a value or signal its completion.
Comments (0)
