RE: Integer size (fwd)


Subject: RE: Integer size (fwd)
From: Mike Meyer (mwm@mired.org)
Date: Mon Jun 05 2000 - 14:38:28 CDT


James Montgomerie writes:
> 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?

My copy is in storage, but I know this one. Short is at least 16
bits. Long is at least 32 bits. Int is "the natural size for the
machine", but can hold a short without losing bits. And yes, there are
implementations with short smaller than int smaller than long.

        <mike



This archive was generated by hypermail 2b25 : Mon Jun 05 2000 - 20:05:51 CDT