next up previous
Next: Array Initialization Up: CS101 Lecture 9 Previous: Array Terminology

More Examples

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

Declarations Literals and constants can be used in array declarations,



G. Sivakumar 2000-08-20