Computer Science for IGCSE & O level - Programming (Section 10 - No. 39)

What is the purpose of a 'FOR' loop when populating arrays?
To read from a file.
To write data to a file.
To iterate through the elements of the array and assign values.
To close the array.

Explanation

A 'FOR' loop facilitates processing of each array element based on a predefined or calculated value.

Comments (0)

Advertisement