Multiple choice

Which of the following is/are correct about C structures and unions?

  1. A structure allocates one common storage space for all its members.

  2. A union allocates storage space for all its members separately.

  3. A structure occupies lower memory space than union.

  4. We can access only one member of union at a time.

  5. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The statement is true about union. We can access only one member of union at a time because union allocates one common storage space for all its members.