Computer Science, asked by aanchaldhiman4051, 14 hours ago

If int a;long b;double c; float d; and s=a*b+c/d then what is the data type of expression
float
double
long
long double

Answers

Answered by kajalpal1975
1

Answer:

double

Explanation:

a is int, b is long, c is double, d is float

a*b = int * long = long

c/d = double/float = double

a*b+c/d

= long + double

= double

s is double

Answered by anvitanvar032
0

Answer:

The correct answer to this question is Double.

Explanation:

Given - int a;long b;double c; float d; and s=a*b+c/d

To Find -  what is the data type of expression?

Double is the data type of expression of the int a; long b; double c; float d; and s=a*b+c/d.

The values of IEEE 64-bit (8-byte) floating-point integers used to hold double (double-precision) variables range from -1.79769313486231E308 to -4.94065645841247E-324 for negative values.

Double-precision floating-point values with up to 17 significant digits are stored in the FLOAT data type. FLOAT is equivalent to C's double data type and IEEE 4-byte floating-point. The FLOAT data type's value range is identical to your computer's C double data type's value range.

#SPJ2

Similar questions