Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > union


Example: union

Allows the grouping of common variables together. Unions work in the same way as structures except that all variables are contained in the same location in memory. Enough space is allocated for the largest variable in the union. All variables in the union share the same memory location. See also struct.