Computer Science for IGCSE & O level - Programming (Section 7 - No. 37)

Which of the following statements describes the main characteristic of a function in programming?
A function can return any value.
A function must always return a value.
A function can only use global variables.
A function must not contain parameters.

Explanation

A function's primary purpose is to return a value.

Comments (0)

Advertisement