以下正确的定义语句是()。
A.long b[2][3]={{1},{1,2},{1,2,3}};
B.int a[1][4]={1,2,3,4,5};
C.float x[3][]={{1},{2},{3}};
D.double y[][3]={0};
A.long b[2][3]={{1},{1,2},{1,2,3}};
B.int a[1][4]={1,2,3,4,5};
C.float x[3][]={{1},{2},{3}};
D.double y[][3]={0};
第1题
A.i=c+i;
B. c=c+i;
C. L=f+L;
D. f=i+L+f;
第4题
A.int x=y=z=5;
B.int x,y,z=5;
C.int x=5,y=5,z=5;
D.x=5,y=5,z=5;
第6题
A.obj.Hello();
B.obj::Hello();
C.Myclass.Hello();
D.Myclass::Hello();
第8题
A.name[3]='q';
B.name="lin";
C.name=newchar[5];
D.name=newchar('q');
第10题
A.scanf ("%s",&s[0]);
B.scanf ("%c",s);
C.gets(&s[0]);
D.gets(s);
第11题
A.outfile.write((float *) &data, sizeof(float));
B.outfile.write((float *) &data, data);
C.outfile.write((char *) &data, sizeof(float));
D.outfile.write((char *) &data, data);