Skip to content

Array

An array is a collection of data items with a single variable name.

The data items, or elements, of the array are stored in consecutive memory locations, and each is assigned a number: its index.

Array

You use the array variable name and the index to access a particular element of the array.

Practice Exercise

The first index in an array is 0.


Prev -- Up -- Next