RE: Integer size (fwd)


Subject: RE: Integer size (fwd)
From: James Montgomerie (jamie@montgomerie.net)
Date: Mon Jun 05 2000 - 07:39:12 CDT


> <quote>
> > An 'int' is a nice reliable 32 bit size these days
>
> Not really. When I programmed on the mac just a few years ago,
> the default size for int was 16 bits. Of course, longs were 32 bits. All
> the more reason to abandon types like 'int' and 'short' and switch to
> specific types such as int32_t.
> </quote>

I've heard conflicting reports about this, perhaps someone here will have a
copy of the ANSI standard and be able to clarify:

Is a long guaranteed to be 32 bits, or is it compiler and platform
dependent?

Jamie.



This archive was generated by hypermail 2b25 : Mon Jun 05 2000 - 07:36:35 CDT