WORKING WITH ARRAYS

An array is a collection of data, all having the same data type (called the base type), grouped into a single array variable with a single array name.

Individuals within the array are called elements of the array. They can be assessed by the array name followed by an index enclosed within parentheses. They can be used just like regular variables.

For example, an array of integers called Scores can be used to store the examination scores of 65 students in a class. The score for the first student is stored in Scores(1), and the score for the second student is stored in Scores(2), etc.