 |
|
 |
Type conversion - Implicit type conversion | A Wisdom Archive on Type conversion - Implicit type conversion |  | Type conversion - Implicit type conversion A selection of articles related to Type conversion - Implicit type conversion |  |
|
More material related to Type Conversion can be found here:
|
|
|  | |
Type conversion, Type conversion - Aviation, Type conversion - Computing, Type conversion - Explicit type conversion, Type conversion - Implicit type conversion, Type conversion - Two common casting styles, Type conversion - in Ada, Type conversion - in C/C++
|  | |
|
ARTICLES RELATED TO Type conversion - Implicit type conversion | |
 |  |  | Type conversion - Implicit type conversion: Encyclopedia II - Type conversion - Implicit type conversionImplicit type conversion, also known as coercion, is an automatic type conversion by the compiler. Some languages allow, or even require compilers to provide coercion.
In a mixed type expression, a subtype s will be converted to a supertype t or some subtypes s1, s2, ... will be converted to a supertype t (maybe none of the si is of type t) at runtime so that the program will run correctly. For example:
double d;
long l;
int i;
if (d > i) ...
See also:Type conversion, Type conversion - Aviation, Type conversion - Computing, Type conversion - Implicit type conversion, Type conversion - Explicit type conversion, Type conversion - in Ada, Type conversion - in C/C++, Type conversion - Two common casting styles Read more here: » Type conversion: Encyclopedia II - Type conversion - Implicit type conversion |
|  |
|
 | |
|
|
More material related to Type Conversion can be found here:
|
|
|
 | |