0
Determine the data type of this expression
{(2x+3y/5w+6z)+8p/5q}. If x is int,y is long,w is float,z is double,p is short and q is long double.
3 Réponses
+ 2
well, if w is a float then y is converted into a float too, meaning x will also be converted into a float. then the result there will be converted into a double because float + double results in a double. then p is converted into a long double, then double + long double is converted into long double, meaning the final. result of the expression is a value of "long double" type.
0
Ok
- 1
tysm