

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Potential problems?
a=10 fun(a)=
b=
a=11 fun(a)=
b=
a=10 fun(a)=
b=
Def: A narrowing conversion is one that converts an object to a type that cannot include all of the values of the original type
Def: A widening conversion is one in which an object is converted to a type that can include at least approximations to all of the values of the original type
Def: A mixed-mode expression is one that has operands of different types
Def: A coercion is an implicit type conversion
- Caused by: - Inherent limitations of arithmetic e.g. division by zero - Limitations of computer arithmetic e.g. overflow
- Operands are boolean and the result is also a boolean