Next: SLEEP, Previous: SINH, Up: Intrinsic Procedures
SIZE — Determine the size of an arrayRESULT = SIZE(ARRAY[, DIM])
| ARRAY | Shall be an array of any type. If ARRAY is
a pointer it must be associated and allocatable arrays must be allocated.
|
| DIM | (Optional) shall be a scalar of type INTEGER
and its value shall be in the range from 1 to n, where n equals the rank
of ARRAY.
|
INTEGER and of the default
integer kind.
PROGRAM test_size
WRITE(*,*) SIZE((/ 1, 2 /)) ! 2
END PROGRAM