InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is a valid floating-point literal?(a) f287.333(b) F287.333(c) 287.e2(d) 287.3.e2I have been asked this question in semester exam.My doubt stems from Floating Point Types topic in section Types, Pointers, Arrays & Structures in C++ of C++ |
|
Answer» RIGHT CHOICE is (c) 287.e2 Explanation: To make a floating point literal, we should attach a suffix of ‘f’ or ‘F’ and there should not be any BLANK space. |
|