home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH12 / A12102.TXT < prev    next >
Encoding:
Text File  |  1993-09-13  |  411 b   |  8 lines

  1. A promotion (or widening conversion) is a conversion from type A
  2. to type B where all of the values in type A can be represented in
  3. type B. For example, a conversion from int to double is a
  4. promotion.  A demotion (or narrowing conversion) is a conversion
  5. from type A to type B where some of the values of type A cannot be
  6. represented in type B. For example, a conversion from double to
  7. int is a demotion.
  8.