12.1 Introduction
An array is a container that holds data while it is being manipulated by a computer program. More specifically, it is a data structure that consists of a collection of elements of the same type, where each element contains its own value and is identified by one or more indices (a.k.a., subscripts). Arrays can be one-dimensional or multidimensional.1 The elements of a one-dimensional array are referenced by a single index, the elements of a two-dimensional array are referenced by two indices, and so on. It is not uncommon to see arrays of three or more ...