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

  1. An arithmetic conversion is an automatic conversion that takes
  2. place because the operands of an arithmetic operator have
  3. different types.  These conversions have two goals:  creating a
  4. common type for the two operands, and
  5. preventing loss of information.  If one
  6. operand is a floating type and the other is an integral type, the
  7. integral operand is converted to a floating type.  If both
  8. operands are either integral or floating type, the operand with
  9. the narrower type is converted to the type of the other operand.
  10. On the next page is a list of the arithmetic conversions.
  11.