Re: 0xdeadbeef vs 0xdeadbeefL

From: Tomas Szepe
Date: Wed Jul 07 2004 - 02:32:00 EST


On Jul-06 2004, Tue, 19:05 -0700
Ray Lee <ray-lk@xxxxxxxxxxxxx> wrote:

> According to K&R, 2nd ed, section A2.5.1 (Integer Constants):
>
> The type of an integer depends on its form, value and suffix.
> [...] If it is unsuffixed octal or hexadecimal, it has the first
> possible of these types ["in which its value can be represented"
> -- from omitted]: int, unsigned int, long int, unsigned long
> int.

Is it safe to assume that C99 compilers append "..., long long int,
unsigned long long int" to the list?

--
Tomas Szepe <szepe@xxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/