Union initialization

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Feb 19 11:14:25 AEST 1989


In article <816 at atanasoff.cs.iastate.edu> hascall at atanasoff.cs.iastate.edu (John Hascall) writes:
>  Does 'ANSI' C allow for union initialization?  If not, why not?

Yes, it does.  The initializer is for the first member of the union.

Nobody suggested an acceptable way to specify initializing members
other than the first.  Please don't post your suggestion here, as
it's probably already been seen and rejected.



More information about the Comp.lang.c mailing list