1.

Which of the following expressions is an example of type conversion?(a) 4.0 + float(3)(b) 5.3 + 6.3(c) 5.0 + 3(d) 3 + 7

Answer» Correct answer is (a) 4.0 + float(3)

For explanation: Type conversion is nothing but explicit conversion of operands to a specific type. Options 5.3 + 6.3 and 5.0 + 3 are examples of implicit conversion whereas option 4.0 + float(3) is an example of explicit conversion or type conversion.


Discussion

No Comment Found