In structure each member get separate space in memory. … In union, the total memory space allocated is equal to the member with largest size. All other members share the same memory space . This is the biggest difference between structure and union.
In structure each member get separate space in memory. … In union, the total memory space allocated is equal to the member with largest size. All other members share the same memory space . This is the biggest difference between structure and union.