Absolute size of 'short'

David Ewing ewing at se-sd.sandiego.ncr.com
Fri Aug 5 05:43:35 AEST 1988


In article <214 at ISIDAPS5.UUCP> mike at ISIDAPS5.UUCP (Mike Maloney) writes:
>Dear C-Heavies,
>
>Is the size of a (signed or unsigned) short integer guarenteed to
>be two bytes? 

No, the only guarantees are short is less than OR EQUAL TO int
which is less than OR EQUAL to long.

For example, on the 32-bit machine where I work:

     long  =  32 bits (signed or unsigned).
     int   =  32 bits (       "          ).
     short =  16 bits (       "          ).

David A. Ewing
NCR -- Systems Engineering, San Diego
     



More information about the Comp.lang.c mailing list