Assume a program has the following variable definitions:
int units;
float mass;
double weight;
and the following statement:
weight = mass * units;
Which automatic data type conversion will take place?
A) mass is demoted to an int, units remains an int, and the result of mass * units is an int.
B) units is promoted to a float, mass remains a float, and the result of mass * units is a float.
C) units is promoted to a float, mass remains a float, and the result of mass *units is a double.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.