This union, shared, can be used to create instances of a union that can hold either a character value c or an integer value i. This is an OR condition.
The only difference in the declarations is that the keyword union is used instead of struct. To define a simple union of a char variable and an integer
The reason for this is simple. All the members of a union occupy the same area of memory. They are laid on top of each other. Unions are defined and declared
Unions are similar to structures. A union is declared and used in the same ways that a structure is. A union differs from a structure in that only one
Do take the advantage of declaring a pointer to a structure, especially when using arrays of structures.
Do use the indirect membership operator