Promotion
In mixed-type expressions, the value of a more restricted type is automatically promoted to a more general type.
float x;
x = 13 / 5.0;
13 is promoted to float before division is carried out.
Previous slide
Next slide
Back to first slide
View graphic version