Fixed-Length Array

This section describes the fixed-length arrays of homogenous elements.

Fixed-length arrays of homogeneous elements are declared as follows:

type-name identifier[n];

Fixed-length arrays of elements are encoded by individually coding the elements of the array in their natural order, 0 through n-1. Each element size is a multiple of 4 bytes. Although the elements are of the same type, they may have different sizes. For example, in a fixed-length array of strings, all elements are of the string type, yet each element varies in length. See the Fixed-Length Array figure (Figure 1).

Figure 1. Fixed-Length Array.
This diagram shows from the left, element 0, element 1, a series of dots to signify the elements between element 1 and element n -1. The length is equal to n elements.