Unions
摘要
A union is a user-defined type whose members overlap in memory. Unlike a structure whose members occupy separate regions of memory, the union’s members all occupy the same memory region. The size of the union is equal to the size of its largest field. When declaring a union, we use the following syntax: