java、c 2.下列声明哪个是错误的()A int i = 10; B float f = 1.1;C double d = 34.4; D long m = 4990;

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 10:12:46
java、c 2.下列声明哪个是错误的()A int i = 10; B float f = 1.1;C double d = 34.4; D long m = 4990;
x)J,K|И`~OߓO;?]ٌW=ٱٌ/|~Y-t騐W``h~l'4!PY!%4)'U!(dlgR梐 2I*GXb+#5v6Nx99>ٱf {ہ2OwxޯT|AZMcҞnt'l @

java、c 2.下列声明哪个是错误的()A int i = 10; B float f = 1.1;C double d = 34.4; D long m = 4990;
java、c
2.下列声明哪个是错误的()
A int i = 10; B float f = 1.1;
C double d = 34.4; D long m = 4990;

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就对了.