Unions in C Programming Language
Unions in C programming language (like structures) contains members whose individual data type may differ from one another. However, the members within a union all share the same storage area within the computer’s memory whereas each member within a structure is assigned its own unique storage area. Thus, unions in C are used to conserve memory. They are useful for applications involving multiple members, where values need not be assigned to all the members at any one time. Within a union in C, the bookkeeping required to store members whose data types are different (having different memory requirements) is handled...