Home Segments Index Top Previous Next

270: Mainline

A one-dimensional array is a collection of places where objects are stored and retrieved using an integer index. Each object in an array is called an element of that array. In C, the first element is indexed by zero; hence, C is said to have zero-based arrays.

   0     1     2     3     4    5     <-- Index 
*------*------*------*------*------* 
|  700 |  400 |  400 |  500 |  350 | 
*------*------*------*------*------*