← Quiz: Structures and Unions: all 10 questions
Quiz: Structures and Unions · Question 2 of 10
What is the size of a union with members char, int and double (double = 8 bytes)?
What is the size of a union with members char, int and double (double = 8 bytes)?
- A.13
- B.16
- C.8
- D.1
Answer & explanation
Correct answer: 8
A union is as big as its largest member.
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 →