java、c
问题描述:
java、c
2.下列声明哪个是错误的()
A int i = 10; B float f = 1.1;
C double d = 34.4; D long m = 4990;
答
B是错误的,JAVA中规定1.1这样的常量,是DOUBLE类型的,改成 float f = 1.1f就对了.