Computer Science for IGCSE & O level - Programming (Section 8 - No. 23)
Which is the core feature that differentiates a function from a procedure?
Functions are always shorter.
Functions always return a value.
Procedures are always more complex.
Procedures return a value, and functions do not.
Explanation
Functions are designed to return a value to the part of the program that called them.
Comments (0)
