Andrew Brown said:
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.
K&R isn't the Standard, and sometimes simplifies. However, your conclusions here are correct. -- Clive D.W. Feather | Work: <clive@demon.net> | Tel: +44 20 8495 6138 Internet Expert | Home: <clive@davros.org> | Fax: +44 870 051 9937 Demon Internet | WWW: http://www.davros.org | Mobile: +44 7973 377646 Thus plc | |