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,

 
 tex2html_wrap_inline43037  type  tex2html_wrap_inline43039  [, tex2html_wrap_inline43037  attribute-list  tex2html_wrap_inline43039 ] [::]  tex2html_wrap_inline43037  variable-list  tex2html_wrap_inline43039 &

[ = tex2html_wrap_inline43037  value tex2html_wrap_inline43039 ]

If tex2html_wrap_inline43037  attribute-list tex2html_wrap_inline43039 or = tex2html_wrap_inline43037  value tex2html_wrap_inline43039 are present then so must be ::.

The following are all valid declarations,

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

The DIMENSION attribute declares a tex2html_wrap_inline43189 array.

For more information, click here gif


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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.