Which is valid declaration of a float?

Options
- float f = 1F;
- float f = 1.0;
- float f = "1";
- float f = 1.0d;


CORRECT ANSWER : float f = 1F;

Discussion Board
Declaration of a float..

float f = 1.0; is not true option..?

Anaam 06-11-2014 01:21 AM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement