🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.One
  2. B.All of them
  3. C.Two
  4. 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 →