HP 3000 Manuals

BYTE Statement (Nonexecutable) [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

BYTE Statement (Nonexecutable) 

The BYTE type specification statement explicitly assigns the BYTE
(LOGICAL*1) data type to symbolic names, and optionally assigns initial
values to variables.

See also "LOGICAL Statement (Nonexecutable)" .

	       Click here to view figure.
            

Semantics 

The BYTE statement is an extension to the ANSI 77 standard.  The BYTE
statement has the same effect as the LOGICAL*1 statement.

If an item being declared in a BYTE statement is an array name with a
dimension declarator, the length specifier precedes the dimension
declarator.

As an extension to the ANSI 77 standard, you can initialize variables or
arrays in a type specification statement by enclosing the initialization
values between slashes.  The following examples illustrate this method of
initialization:

     BYTE I*1/25/,J/.TRUE./
     BYTE array(10)/10*.FALSE./

See "DATA Statement (Nonexecutable)"  for further information on
initializing variables and arrays.



MPE/iX 5.0 Documentation