HP 3000 Manuals

Constants [ HP C/iX Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Reference Manual

Constants 

A constant is a primary expression whose literal or symbolic value does
not change.

Syntax 

     constant ::= floating-constant 
                  integer-constant 
                  enumeration-constant 
                  character-constant 

Description 

Each constant has a value and a type.  Both attributes are determined
from its form.  Constants are evaluated at compile time whenever
possible.  This means that expressions such as

       2+8/2

are automatically interpreted as a single constant at compile time.



MPE/iX 5.0 Documentation