01-03-2006, 08:33 AM
The type of an unsifixed hexadecimal constant is the first of the following list in which its value can be represented:
int
unsigned int
long
unsigned long
then, for 16 bits µC (int=16bits):
0xffff => unsigned int
0xffffffff => unsigned long
and for 32 bits µC (int=32bits):
0xffff => int
0xffffffff => unsigned int
int
unsigned int
long
unsigned long
then, for 16 bits µC (int=16bits):
0xffff => unsigned int
0xffffffff => unsigned long
and for 32 bits µC (int=32bits):
0xffff => int
0xffffffff => unsigned int