Explanatory Question
Which of the following will compile correctly?
-
float f=10f;
-
float f=10.1;
-
float f=10.1f;
-
byte b=10b;
float f=10f;
float f=10.1;
float f=10.1f;
byte b=10b;
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.