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

What does a function always do differently than a procedure (if a function does it at all)?
It takes parameters.
It always returns a value.
It's named differently.
It uses loops.

Explanation

Functions are designed to return a value, and procedures do not have to.

Comments (0)

Advertisement