Discussion Forum : Floating Point Types
Question -

Which of the following is a valid floating point literal?

Options:
A .  f287.333
B .  F287.333
C .  287.e2
D .  287.3.e2
Answer: Option C

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

blank space.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *