6.1.1.2 Assumed-Size Arrays

An assumed-size array is a dummy array for which the upper bound of the last dimension is specified as an asterisk (*), for example:

SUBROUTINE SUB(A,N)
DIMENSION A(1:N,1:*)

If the lower bound of an assumed-size array is not specified, it is assumed to be 1. Therefore, the previous DIMENSION statement is equivalent to the following:

DIMENSION A(1:N,*)

The size of an assumed-size array and the number of elements that can be referenced are determined as follows:

Because the actual size of an assumed-size array is unknown, an assumed-size array name cannot be used as any of the following items in an I/O statement:


Previous Page Next Page Table of Contents