13. Determine the data type
+
2 x + 3y 8p
5w+62
59
if x is int, y is long, w is float, z is double, p is short and q is long double
Answers
Answered by
10
Answer:
Determine the data type of the expression
[2x+3y/5w+6z + 8p/5q]4
if a is int, y is long, w is float, z is double, p is short and q is long double.
Ans.
[2x+3y/5w+6z + 8p/5q]4
[2*int+3*long/5*float+6*double + 8*short/5*long double]4
[int+long/float+double + short/long double]4
[long/double + long double]4
[long + long double]4
[long double]4
long double
So, the data type of the expression is long double.
Similar questions
Social Sciences,
3 months ago
Math,
7 months ago
Psychology,
7 months ago
Social Sciences,
11 months ago
Business Studies,
11 months ago
Economy,
11 months ago