[LC++]int versus unsigned int
Carlo Wood
carlo at alinoe.com
Thu Sep 27 10:25:08 UTC 2001
On Thu, Sep 27, 2001 at 09:15:36AM +0930, Andy Zivkovic wrote:
> > -infinity ... -1, 0, 1, ... +infinity
...
> Therefore a signed int looks like
> 0, 1, ..., 2^31-1, -2^31, -2^31+1, ..., -1.
I was trying to explain how one should look at
int's. I don't think it is a good idea to
consider (or use) an 'int' to have an upper
boundary. If you DO need that fact, then use
the POSIX int32_t.
--
Carlo Wood <carlo at alinoe.com>
More information about the tuxCPProgramming
mailing list