Download FORTRAN 77 Language Reference
Transcript
Examples:
&
BYTE Bit3 / 8 /, C1 / 'W' /,
Counter / 0 /, Switch / .FALSE. /
A BYTE item occupies 1 byte (8 bits) of storage, and is aligned on 1-byte boundaries.
CHARACTER
The character data type, CHARACTER, which has the synonym, CHARACTER*1, holds
one character.
The character is enclosed in apostrophes (') or quotes ("). ✠ Allowing quotes (") is
nonstandard; if you compile with the –xl option, quotes mean something else, and
you must use apostrophes to enclose a string.
The data of type CHARACTER is always unsigned. A CHARACTER item occupies 1 byte
(8 bits) of storage and is aligned on 1-byte boundaries.
CHARACTER*n
The character string data type, CHARACTER*n, where n > 0, holds a string of n
characters.
A CHARACTER*n data type occupies n bytes of storage and is aligned on 1-byte
boundaries.
Every character string constant is aligned on 2-byte boundaries. If it does not appear
in a DATA statement, it is followed by a null character to ease communication with C
routines.
COMPLEX
A complex datum is an approximation of a complex number. The complex data type,
COMPLEX, which defaults to a synonym for COMPLEX*8, is a pair of REAL*4 values
that represent a complex number. The first element represents the real part and the
second represents the imaginary part.
The default size for a COMPLEX item (no size specified) is 8 bytes. The default
alignment is on 4-byte boundaries. However, these defaults can be changed by
compiling with certain special options (see “Size and Alignment of Data Types” on
page 31).
26
FORTRAN 77 Language Reference • May 2000
Related documents
COPYRIGHT NOTICE for An Enhanced
Polysun Tutorial PDF
European Project Semester “Multilevel Inverter” - e
Fortran Programming Guide
Post Processing
Fortran Library Reference
DesignScript summary:
Dyninst User Manual - Home Page - University of Wisconsin–Madison
Fortran User's Guide - Physics at Oregon State University
Parallel Switch and Bus Transfer Switch for
Logic Engine User Manual - Computer Science
Fortran 95: curso básico (versão preliminar)