✏️ Explanatory Question

What is the advantage of an array over individual variables?

👁 6,308 Views
📘 Detailed Answer
💡

Answer with Explanation

When storing multiple related data, it is a good idea to use arrays. This is because arrays are named using only 1 word followed by an element number. For example: to store the 10 test results of 1 student, one can use 10 different variable names (grade1, grade2, grade3