Computer Science for IGCSE & O level - Programming (Section 12 - No. 15)

What is the role of parameters in a procedure or function?
They store the values of the arguments passed to the procedure or function.
They are the same as local variables.
They define the return type of the function.
They are optional and not required for procedures.

Explanation

The text states that parameters store the values of arguments passed to the function.

Comments (0)

Advertisement