24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>FORTRAN</strong> Statements<br />

Example:<br />

IMPLICIT CHARACTER*10 (S-U)<br />

IMPLICIT INTEGER*2 (P)<br />

CHARACTER STRING<br />

INTEGER POINTS<br />

In the above example, the variable STRING is of type character but its length is 1 since it has<br />

appeared in a CHARACTER statement which has a default length of 1. Also, the variable<br />

POINTS is of type integer but its length is 4 since it has appeared in an INTEGER statement<br />

which has a default length of 4.<br />

2. A letter cannot appear more than once as a single letter or be included in a range of letters in all<br />

IMPLICIT statements in a program unit.<br />

3. An IMPLICIT statement applies only to the program unit that contains it.<br />

4. The IMPLICIT statement does not change the type of intrinsic functions.<br />

5. A program unit can contain more than one IMPLICIT statement.<br />

6. Within the specification statements of a program unit, IMPLICIT statements must precede all<br />

other specification statements except PARAMETER statements.<br />

7. The IMPLICIT NONE statement is allowed only once in a program unit. Furthermore, no<br />

other IMPLICIT statement can be specified in the program unit containing an IMPLICIT<br />

NONE statement.<br />

IMPLICIT Statement 91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!