Array Size and Alignment [ HP C Programmer's Guide ] MPE/iX 5.0 Documentation
HP C Programmer's Guide
Array Size and Alignment
An array's size is computed as:
(size of array element type) * (number of elements)
For instance, the array declared below is 400 bytes (4 * 100) long:
int arr[100];
The size of the array element type is 4 bytes and the number of elements
is 100.
Arrays are aligned on a boundary corresponding to their element type.
For example, a double array is aligned on a 8-byte boundary; and a float
array within a struct is aligned on a 4-byte boundary.
MPE/iX 5.0 Documentation