What are the advantages of using Unions in a structure in C?

Answer:

In case of structure each variables have their own storage location whereas for unions all the variables share a common memory location. In structure all the variables can be handled at a time but for union only a member can be handled at a time.

First answer by ID1165543481. Last edit by ID1165543481. Question popularity: 7 [recommend question].