data types

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Feb 4 16:45:25 AEST 1989


In article <2916 at hound.UUCP> rkl1 at hound.UUCP (K.LAUX) writes:
>	Int	is the default word size on the machine,
>	Long	must be equal to or greater than the size of an Int,
>	Short	must be equal to or less than the size of an Int.

Close, except there is no requirement that "int" be the "natural"
word size, just a recommendation that it be so.  In fact some 64-bit
C implementors have had to agonize over whether to make int 64 bits
or 32.  (The latter to make it easier to port 4BSD VAX code that has
that assumption, or the assumption that long is 32 bits, wired in.)



More information about the Comp.lang.c mailing list