E
Ersek, Laszlo
An "integer-constant" is a decimal, octal, or hexadecimal constant,
optionally followed by a suffix such as "UL"; it's a single token.
Even "-1" isn't an integer constant; it's a "-" token followed by
an integer constant.
Hm... Supposing INT_MIN is -32768 and INT_MAX is 32767, how is the value
and type of the integer constant expression described by the token
sequence "-", "32768" determined? If "-32768" is not a single integer
constant, then it is the expression
(-(32768))
However, 32768 has type "long" (as per C99 6.4.4.1p5 and the INT_MAX
above), so -32768 (INT_MIN) is a long. Umm, what? I guess I'm
misunderstanding something...
Thanks,
lacos