Friday, June 17, 2011

6.8 Unions

  • A union is a variable that may hold (at different times) objects of different types and sizes, with the compiler keeping track of size and alignment requirements 
  • Unions provide a way to manipulate different kinds of data in a single area of storage, without embedding any machine-dependent information in the program
  • Syntax:


No comments:

Post a Comment