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

What is the primary purpose of a function in programming?
To store data.
To organize code into reusable blocks.
To perform calculations automatically.
To control the flow of execution.

Explanation

Functions allow modularity and code reuse.

Comments (0)

Advertisement