next up previous contents
Next: Visualisation of Arrays Up: Arrays Previous: Array Terminology

 

Declarations

Literals and constants can be used in array declarations,

    REAL, DIMENSION(100)       :: R
    REAL, DIMENSION(1:10,1:10) :: S
    REAL                       :: T(10,10)
    REAL, DIMENSION(-10:-1)    :: X
    INTEGER, PARAMETER            :: lda = 5
    REAL, DIMENSION(0:lda-1)      :: Y
    REAL, DIMENSION(1+lda*lda,10) :: Z

For more information, click here gif

Now try this question gif


next up previous contents
Next: Visualisation of Arrays Up: Arrays Previous: Array Terminology

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.