Wednesday, March 9, 2011

2.7 Type Conversions

  • When an operator has operands of different types, they are converted to a common type according to a small number of rules
  • In general, the only automatic conversions are those that convert a "narrower" operand to a "wider" operand, without loss of information ( ie. integer to floating point) 

No comments:

Post a Comment