Originally Posted by
nonoob
I think it's valid to expect an expert explanation here from people who actually program and have a real feel for the C language and its data types rather than just pointing to some dry "standard" definition. At least that's what I would hope for if I asked a question here... so that if I was still not clear I could get more details from the same author. Maybe diagrams, examples, etc.
I'd sure hate to be directed to some Googleable site that I could have found myself just as easily. Or is it assumed that students are too lazy to do their own searches these days?
Oh, jephthah, I would disagree that unions store one of the elements at-a-time. I would interpret it as having data easily accessible in any one of the chosen data types... sort of a built-in typecast without the typecast. The "one element" may have valid, simultaneous meanings under more than one type at-a-time.