🎙 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 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)?

  1. A.13
  2. B.16
  3. C.8
  4. 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 →