Unions

Abstract

The union type is identical to the struct type, except that all fields share the same memory position. Therefore, the size of a union is the size of the largest field it contains. In the following code, this is the integer field, which is four bytes.