In the following statement, assume that area is a long int, while length and width are
both int s:
area = length * width;
Since length and width are both ints, they will not be converted to any other data type. The result of the multiplication, however, will be converted to long so it can be stored in area.
Watch out for situations where an expression results in a fractional value being assigned to an integer variable. Here is an example:
int x, y = 4;
float z = 2.7;
x = y * z;
In the expression y * z, y will be promoted to float and 10.8 will result from the multiplication. Since x is an integer, however, 10.8 will be truncated and 10 will be stored in x.