C Interviews
C Interview
Major advantages of using unions are: (i) Efficient use of memory as it it does not demand memory space for its all members rather it require memory space for its largest member only. (ii) Same memory space can be interpreted differently for different members of the union.