C is correct because an int is used to store an integer number.
D is correct because the compiler will automatically convert 3 to a floating-point number.
A, B, and E are incorrect.
A is incorrect because an int cannot store a decimal number.
B is incorrect because 3.0f would be a valid literal for a float, but 3.0 would not (the compiler treats 3.0 as a double).
E is incorrect because an int cannot have f appended to it.
|