- A (float)2.76
- B 2.76f or 2.76F
- C 2.76 itself of "float" data type i.e. nothing else required.
- D float(2.76)
- Share this MCQ
Answer:
B
Explanation:
By default floating constant is of a double data type. By suffixing it with f or F, it can be converted to float data type. For more details, this post can be referred here.
Related Topic: