range of 32 bit unsigned int/long
kamal_ckk at yahoo.com
Mon Mar 6 12:03:03 UTC 2006
i am a bit confused over this.
the 16 bit unsigned integer takes the value as i checked myself
for 0 to 2^16-1 (=65535).
but the 32 bit unsigned integer/long does not take the
value from 0 to 2^32-1 (4294967295).
instead 32 bit unsigned int/long takes the value from
0 to 2^31-1 (2147483647).
the gcc shows that the message
warning: this decimal constant is unsigned only in ISO C90
what is happening, i am confused.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the freebsd-questions