On Tue, Jul 27, 2004 at 10:48:34PM +0700, Robert Elz wrote:
Beyond that, C doesn't actually promise that "int" is limited to 32 bits does it? Given that, the 2147483648 numbers are just speculation.
my copy of k&r (2ed) says, in brief: + short and long are intended (but not required) to be different lengths + int will be the "natural size" for a machine + shorts and ints are at least 16 bits + longs are at least 32 bits + sizeof(short) <= sizeof(int) <= sizeof(long) therefore, int could be 128 bits if you liked, but long would have to be at least as many, while short could only be at most as many. and that's it. iirc, the cray was a "csilp64" machine, and that didn't break any rules. -- |-----< "CODE WARRIOR" >-----| codewarrior@daemon.org * "ah! i see you have the internet twofsonet@graffiti.com (Andrew Brown) that goes *ping*!" werdna@squooshy.com * "information is power -- share the wealth."