next up previous contents index
Next: Storage Sequence Up: Arrays Previous: Declaring Arrays

Using Arrays

  An array element reference must always use the same number of subscripts as the number of dimensions declared for the array. Each subscript can be an integer expression of any complexity, but there are restrictions on functions with side effects (see section 9.3).

An array element reference is only valid if all of the subscript expressions are defined and if each one is in the range declared for it. An array element can only be used in an expression if a value for it has been defined. A DATA statement (section 12) can be used to define an initial value for an entire array or any set of elements.

An array can be used without subscripts:



Mario Storti
Wed Nov 4 19:32:56 ART 1998