HP C/iX Reference Manual (31506-90011)
20 Chapter2
Lexical Elements
Integer Constants
Integer Constants
Integer constants represent integer values.
Syntax
integer-constant
:=
decimal-constant [integer-suffix]
octal-constant [integer-suffix]
hexadecimal-constant [integer-suffix]
decimal-constant
:=
nonzero-digit
decimal-constant digit
octal-constant
:=
0
octal-constant octal-digit
hexadecimal-constant
:=
0x
hexadecimal-digit
0X
hexadecimal-digit
hexadecimal-constant hexadecimal-digit
nonzero-digit
:= any character from the set
123456789
octal-digit
:= any character from the set
01234567
hexadecimal-digit
:= any character from the set
0123456789
abcdef
ABCDEF
integer-suffix
:=
unsigned-suffix [long-sufix]
long-suffix [unsigned-suffix]
unsigned-suffix
:= any character from the set
uU
long-suffix
:= any character from the set
lL
NOTE
The u and U suffixes are available only in ANSI mode.