# Whole Arrays

A whole array is a named array; it is either a named constant or a variable. It is referenced by using the array name (without any subscripts).

If a whole array appears in a nonexecutable statement, the statement applies to the entire array. For example:

    INTEGER, DIMENSION(2:11,3) :: L   ! Specifies the type and
                                      !    dimensions of array L

If a whole array appears in an executable statement, the statement applies to all of the elements in the array. For example:

      L = 10       ! The value 10 is assigned to all the
                   !   elements in array L
      WRITE *, L   ! Prints all the elements in array L

Parent topic: Arrays