← Quiz: Structures and Unions: all 10 questions
Quiz: Structures and Unions · Question 5 of 10
In a union, how many members hold a valid value at the same time?
In a union, how many members hold a valid value at the same time?
- A.One
- B.All of them
- C.Two
- D.None
Answer & explanation
Correct answer: One
All members share the same memory, so only the last written one is meaningful.
Can you get the rest right without peeking?
Take the timed Quiz: Structures and Unions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →