Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integral promotion.
#2
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)