Unions

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Oct 23 05:48:37 AEST 1988


In article <6176 at june.cs.washington.edu> pardo at cs.washington.edu (David Keppel) writes:
>Interesting note: gcc preserves the high-order bits of the union.
>I believe that this behavior is not guaranteed either by K&R or by the
>dpANS proposed standard.  (Anybody know?  Tell me, please?)

Nothing is promised about other members of a union when one member is
modified, just as nothing is promised about the holes in a structure
or union.



More information about the Comp.lang.c mailing list