Structure question (problem)

Daniel Gray dan at mgweed.UUCP
Fri May 31 01:19:18 AEST 1985


If my memory serves me correctly, The compiler will allocate only
enough space for the largest element in the union. There for, it is
the responsibility of the programmer to remember what is in the union
and work with it accordingly. If you want to initialize something to
specific values, I suggest that you deal with struc[tures]. Only in
structures can all of the elements reside concurrently.


Daniel Gray
ihnp4!mgweed!mgbase!dan



More information about the Comp.lang.c mailing list