Home » C++ Programming » Data Types » Question
  1. Which of the following is a valid floating-point literal?
    1. 287.3.e2
    2. f287.333
    3. F287.333
    4. 287.e2
    5. None of these
Correct Option: D

To make a floating point literal, we should attach a suffix of ‘f’ or ‘F’ and there should not be any blank space.



Your comments will be displayed only after manual approval.