(5) Although all the arrays are declared before using
them, an array can be used without declaration if its
subscription maximum value is 10 or less,
sion is assumed that DIM 10 was declared when it was
used for the first time regardless of the number of
dimensions.
Each dimen-
(7) The array declaration can be cancelled by the ERASE
instruction. (If the memory has been exhausted, the
array which will not be used any more can be deleted
and a new array can be declared.)
Examples
1)
>10 DIM A(10,20,10)
>20 FOR I = 1 TO 10
>30 FOR J = 1 TO 20
>40 FOR K = 1 TO 10
>50 INPUT A(I,J,K)
>60 NEXT K, J, I
2)
>10 INPUT M, N
>20 DIM A(M, N)
>30 FOR I = 1 TO M
>40 FOR J = 1 TO N
>50 INPUT A(I, J)
>60 NEXT J, I
i
i
>200 END
3-45