next up previous contents
Next: Character Declarations Up: Data Objects Previous: Implicit Typing

 

Numeric and Logical Declarations

With IMPLICIT NONE variables must be declared. A simplified syntax follows,

 
< type > [,< attribute-list >] :: < variable-list >&

[ =< value > ]

The following are all valid declarations,

    REAL                   :: x
    INTEGER                :: i, j
    LOGICAL, POINTER       :: ptr
    REAL, DIMENSION(10,10) :: y, z
    INTEGER                :: k = 4

The DIMENSION attribute declares an array ( tex2html_wrap_inline26209 ).

For more information, click here gif


next up previous contents
Next: Character Declarations Up: Data Objects Previous: Implicit Typing

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