Integer
Return to Introduction  Previous page  Next page IOMax Homepage
integer-constant

Syntax:
integer-constant
decimal-constant integer-suffixopt  
octal-constant integer-suffixopt  
hexadecimal-constant integer-suffixopt  

decimal-constant
digit1-9  
decimal-constant digit  

octal-constant:
0   
octal-constante octal-digit  

hexadecimal-constant:
0x   hexadecimal-digit  
0X   hexadecimal-digit  
hexadecimal-constant hexadecimal-digit  

digit 1-9
1 2 3 4 5 6 7 8 9   

octal-digit
0 1 2 3 4 5 6 7   

hexadecimal-digit
0 1 2 3 4 5 6 7 8 9  
a b c d e f   
A B C D E F   

integer-Suffix
l L  

Sample:
i=157   //dezimal-constant  
j=0365   //oktal-constant  
k=0192   //error in oktal-constant because of '9'  
l=0x3fff   //hexadezimal-constan