C++ Language/Objects/LowLevelCStructures/Union

A  is the same as   except for default accessibility.

A  is also the same, except all members in the union overlap in memory (space in memory is made for the largest member). Only one member can have meaningful data at one time.

Additional information about union