Datasheet
Hexadecimal
All constants starting with 0x (or 0X) are taken to be hexadecimal. In the absence of
any overriding suffixes, the data type of an hexadecimal constant is derived from its
value, according to the rules presented above. For example,
0xC367 will be treated
as unsigned int.
Binary
All constants starting with 0b (or 0B) are taken to be binary. In the absence of any over-
riding suffixes, the data type of an binary constant is derived from its value, according
to the rules presented above. For example, 0b11101 will be treated as short.
Octal
All constants with an initial zero are taken to be octal. If an octal constant contains
the illegal digits 8 or 9, an error is reported. In the absence of any overriding suffix-
es, the data type of an octal constant is derived from its value, according to the rules
presented above. For example, 0777 will be treated as int.
128
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5
Value Assigned to Constant Assumed Type
< -2147483648 Error: Out of range!
-2147483648 – -32769
long
-32768 – -129
int
-128 – 127
short
128 – 255
unsigned short
256 – 32767
int
32768 – 65535
unsigned int
65536 – 2147483647
long
2147483648 – 4294967295
unsigned long
> 4294967295 Error: Out of range!