Which of the following are valid floating point literal?
.5
2
0.5
None of the mentioned
Correct Answer: C — 0.5
Explanation:
floating point literals are valid only when they have digits on both the sides of decimal point.