下列语句段中,正确的是( )。
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; };
第1题:
下列定义变量的语句中正确的是( )。A)int _int; B)double 3int_;C)char for; D)float US&;
第2题:
下列语句段中,正确的是( )。
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;};
第3题:
已知语句int m=10;则下列引用的表示中正确的是
A.int &x=m;
B.int &y=10;
C.int &z;
D.float &t=&m;
第4题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int y;int z;};struct ord a;
B.struct ord{int x;int y;int z;};ord a;
C.struct ord{int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
第5题:
A. float add(int x, int y) ;
B. int add(int x;int y) ;
C. char add( x,y) ;
D. int add(char x[ ] [ ]) ;
第6题:
switch(c) 语句中c可以是int, long, char, float, unsigned int 类型。( )
第7题:
下面结构体的定义语句中,错误的是
A.struct ord{int x;int y;int z;};struet ord a;
B.atruet ord{int x;int y;int z;}struct ord a;
C.struet ord{int x;int y;int z;}a;
D.struct{int x;int y;int z;)a;
第8题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int Y;int z;}struct ord a;
B.struct ord{int x;im Y;im z;};struct ord a;
C.struct ord{int x;int Y;int Z;}a;
D.struct{int x;int Y;int z;}a;
第9题:
设有以下声明语句 street ex { int x;float y;char z;} example; 则下面的叙述中不正确的是 ______ 。
A.struct是结构体类型的关键字
B.example是结构体类型名
C.x,y,z都是结构体成员名
D.struct ex是结构体类型
第10题:
设有下列说明语句:
strcut str
{int x;float y;char z;}st;
则下列的叙述中不正确的是( )。
A.struct是结构体类型的关键字
B.st是结构体类型名
C.x、y、z都是结构体成员名
D.struct str是结构体类型名
第11题:
若下列各选项中所有变量已正确定义,函数fun通过return语句返回一个函数值,以下选项中错误的程序是( )。
A.main( ) {...... x = fun(2,10);......} float fun(int a, int b){......}
B.float fun( int a,int b){......} main( ) {......x = fun(i,j);......}
C.float fun(int, int); main( ) {......x=fun(2,10);......} float fun(iht a, int b){......}
D.main( ) { float fun(int i, int j); ...... x = fun(i,j);......} float fun(int a,int b) {......}
第12题:
以下C语言语句中,正确的是()
第13题:
已经语句int m=10;则下列表示引用的表示中正确的是( )。
A.int &x=m;
B.int &y=10;
C.int &z;
D.float &t=8m;
第14题:
若各选项中所用变量已正确定义,fun()函数中通过return语句返回一个函数值,下列选项中错误的程序是( )。
A.main() {……x=fun(2,10);……} float fun(int a,int b){……}
B.float fun(int a,int b){……} main() {……x=fun(i,j);……}
C.float fun(int,int); main() {……x=fun(2,10);……} float fun(int a,int b){……}
D.main() {float fun(int I,intj); ……x=fun(i,j);……} float fun(int a,int b){……}
第15题:
设有下列说明语句: strcut str {int x;float y;char z;}st; 则下列的叙述中不正确的是( )。
A.00001111
B.11111101
C.00000010
D.11000000
第16题:
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int Y;int Z;};struet ord a;
B.struct ord{int x;int y;int Z;}struct ord a;
C.struct ord{int X;int Y;int Z;}a;
D.struct{int X;int y;int Z;}a;
第17题:
执行下列程序段,结果是 #include<iostream.h> void main( ) { int x=40; char y='C'; int n; ? n=(x&0) xff) &&(y>'B') ; cout < < n;}
A.0
B.1
C.2
D.3
第18题:
设有下列说明语句: strcut str {int x; float y; char z;}st; 则下列的叙述中不正确的是( )。
A.struct是结构体类型的关键字
B.st是结构体类型名
C.x、y、x都是结构体成员名
D.struct str是结构体类型名
第19题:
有以下定义和语句,则sizeof(a.share)的值是( )。
struct date
{ unsigned int day;
unsigned int mouth;
unsigned int year;
union{int share1;
float share2;
}share;
}a;
第20题:
设有以下说明语句: struct ex {int x;float y;char z; }example;在下面的叙述中,不正确的一条是______。
A.struct是结构体类型的关键词
B.example是结构体类型名
C.x,y,2都是结构体成员名
D.struct ex是结构体类型
第21题:
下列语句段中,正确的是( )。
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; };
第22题:
下列语句段中,正确的是( )。
A.street { 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.stmct stu { int a; float x[4]; }y={1,1.0}; float data=y.x;
D.struct nd { int a,b; unsigned c[2]=5; };
第23题:
下面的函数声明中,()是“void BC(int a, int b);”的重载函数
第24题:
在C语言中下列变量定义和赋值错误的是()。