short vs. long

Doug Gwyn gwyn at smoke.BRL.MIL
Mon May 22 21:30:20 AEST 1989


In article <11763 at well.UUCP> markg at well.UUCP (Mark Grand) writes:
>The current draft of the standard does not require that the sizeof short is
>less than or equal to the sizeof int; nor that sizeof int is less than or
>equal to sizeof long.

Sure it does.  "In the list of signed integer types above, the range of
values of each type is a subrange of the values of the next type in the
list."  This requirement can be combined with other constraints on the
behavior of integers to deduce the relations between their sizeof sizes.



More information about the Comp.std.c mailing list