By default, the data type of a constant without a decimal point is int, whereas the one with a decimal point is a double.
Answer: A
Correct answer: Yes
An unsuffixed integer literal such as 10 has type int, and one with a decimal point such as 3.14 has type double - not float, which catches many people out. Suffixes override this: 10L, 10U, 3.14f.
Please log in or register to report this question.