Decimal constants
Numbers from 0 to 9.
Examples:
12
111
956
1007
Hexadecimal constants
Numbers from 0 to 9; letters a-f or A-F for the values of 10 to 15. The hexadecimal contents shall begin with 0x or 0X.
Examples:
0x12 = 18 (decimal);
0x2f = 47 (decimal);
0xA = 10 (decimal);
Binary constants
Numbers 0 and 1. The binary constants shall end in b or B.
Examples:
010011101b = 0x9D (hexadecimal) = 157 (decimal);
0101B = 5
Note. If the value exceeds 65535, then it will be presented as the long integer.
|