C - Unions3

From EdWiki

Unions ...

  • The same operators are permitted on unions as on structures.
  • The type retrieved must be the type most recently stored.
  • It is the programmer’s responsibility to keep track of which type is currently stored in a union.
  • A union is a structure in which all members have offset zero.
  • A union may only be initialized with a value of the type of its first member.