Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Mar 2006 04:02:57 -0800 (PST)
From:      kamal kc <kamal_ckk@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   range of 32 bit unsigned int/long 
Message-ID:  <20060306120257.61959.qmail@web30012.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
dear all,

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.

kamal.




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060306120257.61959.qmail>