Рет қаралды 74,828
Difference between union and structure is in memory allocated to the variable.
For structure variable the memory allocated is the sum of sizes of all the members of a structure.
For Union variable the memory allocated is the highest size of the member of a union.