home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH05 / A05264.TXT < prev    next >
Encoding:
Text File  |  1993-10-18  |  381 b   |  7 lines

  1. Because the members of a union share storage, when a program
  2. alters the value of one data member, it changes all data members.
  3. The value returned here by "WhatAvg" is meaningless because the
  4. integer 83 is interpreted as a floating point number.  The value
  5. assigned to junk is also dependent on the architecture of the
  6. computer.  Yes, unions can make your code less portable.
  7.