Vidyalelo
C Programming · Q35

Structure and Union

Programming · C Programming · question 35

Q35

The restriction with union is

A.
The first member can only be initialized.
Answer
B.
The last member can only be initialized.
C.
Any member can be initialized.
D.
Union can not be initialized
E.
No restriction at all.

Answer: Option A

Solution

Answer: Option A
Solution:

As all the members shares the same memory.