下列语句段中,正确的是( )。
A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; };
B.structstu { unsigneda[3]; unsigned b[4]; }x; int*p=&x.a;
C.struc tsu { int a; float x[4]; }y={1,1.0}; floatdat a=y.x;
D.stmct nd {int a,b; unsigned c[2]=5; };
第1题:
2、设int 型变量 a、b,float 型变量 x、y,char 型变量 ch 均已正确定义并赋值,正确的switch语句是()。
A.switch (x + y) { ...... }
B.switch (ch + 1 ) { ...... }
C.switch ch { ...... }
D.switch (a + b ); { ...... }
第2题:
6、在32位系统中,基本数据类型所占字节长度,正确的是:
A.char<int<float<double
B.char<int<double<float
C.char<short<float<int
D.char<short<int<double
第3题:
各种基本数据类型的存贮空间正确的长度排列为()。
A.char < int < float < double
B.int < char < float < double
C.double < float < int < char
D.float < int < char < double
第4题:
在32位系统中,基本数据类型所占字节长度,正确的是:
A.char<int<float<double
B.char<int<double<float
C.char<short<float<int
D.char<short<int<double
第5题:
各种基本数据类型的存贮空间正确的长度排列为()。
A.int < char <float<double
B.double<float <int<char
C.char<int <float<double
D.float<int <char<double
第6题:
下列语句段中,正确的是( )。
A.struct { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };
B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p=& x.a;
C.street stu { int a; float x[4]; }y={1,1.0}; float data=y.x;
D.struct nd {int a,b; unsigned c[2]=5; };
第7题:
已经有“语句intm=10;”则下列表示引用的表示中正确的是( )。
A.int&x=m;
B.int&y=10;
C.int&z;
D.float&t=8m;
第8题:
已经有“语句intm=10;”则下列表示引用的表示中正确的是( )。
A.int&x=m;
B.int&y=10;
C.int&z;
D.float&t=8m;
第9题:
下列语句段中,正确的是( )。
A.struct{int x;float y;int a[2];unsigned b[3];char name[10];};
B.struct stu{unsigned a[3];unsigned b[4];}x;int*p=&x.a;
C.struct stu{int a;float x[4];}y={1,1.0};float data=y.x;
D.struct nd{int a,b;unsigned c[2]=5;};