This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
On Mon, 8 Feb 1999, Jeffrey A Law wrote: > No, you can't assume that. You can assume: > > sizeof (long long) >= sizeof (long) >= sizeof (int) >= sizeof (short) >= sizeof (char) Assuming that >= means greater *or* equal to, are you saying that given 'long long' is 64 bits then 'long', 'int', 'short' and 'char' can also be 64 bits in certain circumstances? If that's correct, the expression 'Oh bugger!' is something that comes to mind. What's the best way to ensure that you get datatypes of a given bit-length in C/C++? OK, this is getting off-topic for the egcs mailing list, time to take this to comp.lang.c or .c++. Cheers, Alex. ---