此题为判断题(对,错)。
第1题:
A.float f[][] = new float[6][6];
B.float []f[] = new float[6][6];
C.float f[][] = new float[][6];
D.float [][]f = new float[6][6];
第2题:
此题为判断题(对,错)。
第3题:
此题为判断题(对,错)。
第4题:
下面______不是创建数组的正确语句。
A.float f[] f[] = new float[5][5];
B.float f[][] = new float[5][5];
C.float f[][] = new float[][5],
D.float [][] f= new float[5][];
第5题:
设有一共用体变量定义如下: union data { long w; float x; int y; char z;}; union data beta; 执行下列语句后,正确的共用体变量beta的值是( )。 beta.w=123456; beta.y=888; beta.x=3.1416; beta.z='x';
A.123456
B.888
C.3.1416
D.'X'
第6题:
若有定义和语句:struct student { int num; char name[10]; float score;} s[5]={{1,"lili",98.5},{9,"xiaohua",66}},*p=s;printf("%d",*p++);输出结果是1。( )
此题为判断题(对,错)。
第7题:
此题为判断题(对,错)。
第8题:
此题为判断题(对,错)。
第9题:
此题为判断题(对,错)。
第10题:
floatf;Strings;现需要把float转化为String,正确的语句是()
第11题:
对
错
第12题:
s=String.valueOf(f);
f=Float.parseFloat(s);
s=f;
s=(String)f;
第13题:
此题为判断题(对,错)。
第14题:
此题为判断题(对,错)。
第15题:
此题为判断题(对,错)。
第16题:
下列程序语句中,不正确的是______。
A.maia() { float a,b,c; scanf("%f,%f",&a,&b); c=add(a,b); …… } int add(float x,float y) {……}
B.main() { float a,b,c; scanf("%f,%f",&a,&b); c=add(a,b); …… } float add(float x,float y) {……}
C.float add() maia() { float a,b,c; scanf("%f,%f",&a,&b); c=add(a,b); …… } float add(float x,float y) {……}
D.float add(float x, float y) {……} main() { float a,b,c; scanf("%f,%f",&a,&b); c=add(a, b); …… }
第17题:
若有定义和语句:int a;char c;float f;scanf("%d,%c,%f",&a,&c,&f);若通过键盘输入:10,A,12.5,则a=10,c=‘A’,f=12.5。( )
此题为判断题(对,错)。
第18题:
此题为判断题(对,错)。
第19题:
此题为判断题(对,错)。
第20题:
此题为判断题(对,错)。
第21题:
此题为判断题(对,错)。
第22题:
下列语句定义pf为指向float类型变量f的指针,()是正确的。
第23题:
对
错