INTEGER

Statement: Specifies the INTEGER data type.

Syntax

INTEGER
INTEGER([KIND=]n)
INTEGER*n

n
Is kind 1, 2, 4, or 8.

If a kind parameter is specified, the integer has the kind specified. If a kind parameter is not specified, integer constants are interpreted as follows:

The default kind can also be changed by using the INTEGER directive or the /integer_size compiler option.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: INTEGER Directive, Programmer's Guide: Integer Data Types and Integer Constants

Examples

! Entity-oriented declarations:
INTEGER, DIMENSION(:), POINTER :: days, hours
INTEGER (2) :: k=4
INTEGER (2), PARAMETER :: limit=12

! Attribute-oriented declarations:
INTEGER days, hours
INTEGER (2):: k=4, limit
DIMENSION days(:), hours(:)
POINTER days, hours
PARAMETER (limit=12)