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
English,
2 months ago
Economy,
2 months ago
Art,
2 months ago
Math,
5 months ago
Psychology,
5 months ago
Social Sciences,
10 months ago
Business Studies,
10 months ago
Economy,
10 months ago