### 2.2.3.4 Data Type of an Array

The data type of an array is specified in the same way as the data type of a variable-implicitly by the initial letter of the name, or explicitly by a type declaration statement (see Sections 2.2.2.1 and 2.2.2.2).

All the values in an array have the same data type. Any value assigned to an array element is converted to the data type of the array. For example, if an array is named in a DOUBLE PRECISION statement, the compiler allocates an 8-byte storage location for each element of the array. When a value of any type is assigned to any element of that array, the value is converted to double precision.

Previous Page Next Page Table of Contents