Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 7 - No. 35)

What is the purpose of the 'COUNT' variable in many algorithms (like in the counting example)?
To calculate the sum of a set of numbers.
To keep track of the number of items.
To store the largest item.
To sort the data.

Explanation

The 'COUNT' variable is used to count the number of occurrences or items.

Comments (0)

Advertisement