Union
(C++)
A union in C++ is a user-defined type that can hold different types of data, but only one type at a time.
It’s like a struct, but all members share the same memory location.
Resources
Can different member fields are different sizes?
Yes, different members of a union can have different sizes in bits. The size of the union is determined by the size of its largest member.
An example for exception handling