sizeof (integral types)
Glenn L. Austin
austing at Apple.COM
Tue Apr 18 03:54:01 AEST 1989
In article <10044 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>In article <12005 at paris.ics.uci.edu> Doug Schmidt <schmidt at glacier.ics.uci.edu> writes:
>>I realize the relation short <= int <= long holds, I'm just curious
>>whether there is any minimum that these basic types must meet (e.g.,
>>short >= 16 bits, etc.).
>
>chars are at least 8 bits,
>shorts are at least 16 bits,
>longs are at least 32 bits.
longs are guaranteed to be at least 24 bits (according to C++, sec 2.3.1)
-----------------------------------------------------------------------------
| Glenn L. Austin | The nice thing about standards is that |
| Apple Computer, Inc. | there are so many of them to choose from. |
| Internet: austing at apple.com | -Andrew S. Tanenbaum |
-----------------------------------------------------------------------------
| All opinions stated above are mine -- who else would want them? |
-----------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list