Computer Science for IGCSE & O level - Programming (Section 6 - No. 42)

What is the main function of the `RETURN` keyword within a function?
To define a new variable.
To signal the end of a procedure.
To send data back to the caller of the function.
To add a comment to the code.

Explanation

The RETURN statement allows the function to return a value.

Comments (0)

Advertisement