Comments [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Reference
Comments
FORTRAN uses two types of comments: comment lines and embedded comments.
A comment line is denoted in a source file by a C, *, or ! in column 1,
or by a blank line. A comment line is not a statement and does not
affect the program in any way. Comment lines can be placed anywhere in a
source file, including between lines of a continued statement.
An exclamation point (!) following a statement on the same line
indicates the beginning of an embedded comment, unless the exclamation
point is contained in a character or Hollerith constant. The compiler
ignores the exclamation point and any text following; that is, it treats
them as blanks. This use of the exclamation point is an extension to the
ANSI 77 standard. Exclamation points are not allowed in directive lines.
MPE/iX 5.0 Documentation