网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若有以下的说明,对初值中整数2的正确引用方式是

static struct

{char ch;

int i;

double x;

} a[2][3]={{{′a′,1,3,45},{′b′,2,7,98},{′c′,31,93}}};

A.a[0][1].ch

B.a[0][1].i

C.a[0][0].i

D.a[0][2].i


参考答案

更多 “ 若有以下的说明,对初值中整数2的正确引用方式是static struct{char ch;int i;double x;} a[2][3]={{{′a′,1,3,45},{′b′,2,7,98},{′c′,31,93}}};A.a[0][1].chB.a[0][1].iC.a[0][0].iD.a[0][2].i ” 相关考题
考题 若有以下函数首部int fun(double x[10], int *n)则下面针对此函数的函数声明语句中正确的是A)int fun(double x, int *n);B)int fun(double , int );C)int fun(double *x, int n);D)int fun(double *, int *);

考题 若有以下的说明,对初值中整数2的正确引用方式是 static struct {char ch; int i; double x; } a[2][3]={{{'a',1,3,45},{'b',2,7,98},{'c',31,93}}};A.a[0][1].chB.a[0][1].iC.a[0][0].iD.a[0][2].i

考题 若有以下函数首部: int fun(double x[10],int *n) 则下面针对此函数的函数声明语句中正确的是( )。A.int fun(double x, int *n);B.int fun(double, int);C.int fun(double *x, int n);D.int fun(double*, int*);

考题 若有以下变量和函数说明:includecharCh='*';void sub(int x,int y,char ch,double* 若有以下变量和函数说明: #include<iostream.h> charCh='*'; void sub(int x,int y,char ch,double*Z) { switch(ch) { case'+':*Z=x+y;break; case'-':*Z=x-y;break: case'*':*Z=x*y;break; case'/':*z=x/y;break: } } 以下合法的函数调用语句是( )。A.sub(10,20,Ch,y);B.sub(1.2+3,2*2,'+',Z);C.sub(sub(1,2,'+',y),sub(3,4'+',x),'-',y);D.sub(a,b,x,ch);

考题 若有以下函数首部int fun (double x[10],int *n)则下面针对此函数的函数声明语句中正确的是A.int fun(double x, int *n);B.int fun(double , int);C.int fun(double *x, int n);D.int fun(double *, int *);

考题 若有以下的说明,对初值中整数2的正确引用方式是( )。 static struct { char ch; int i; double x; } a[2][3]={{{'a',1,3,45},{'b',2,7,98},{'c',31,93}}};A.a[0][1].chB.a[0][1].iC.a[0][0].iD.a[0][2].i

考题 若有以下变量和函数说明:includecharCh='*'; void sub (int x,int y,char ch,doubl 若有以下变量和函数说明: #include<iostream.h> charCh='*'; void sub (int x,int y,char ch,double*Z) { switch(ch) { case'+':*Z=x+y;break: case'-':*Z=x-y;break: case'*':*Z=x*y; break: case'/':*Z=X/y;break; } } 以下合法的函数调用语句是(A.sub(10,20,Ch,y);B.sub(1.2+3,2*2,'+',Z);C.sub(sub(1,2,'+',y),sub(3,4'+',x),'-',y);D.sub(a,b,x,ch);

考题 若有以下说明和语句,则以下引用方式中不正确的是()。 struct worker { int no; char *name; }work, *p=work;A.work.noB.(*p).noC.p->noD.work->no

考题 2、若有以下说明和语句,则引用方式不正确的是? struct worker{ int no; char *name; }work, *p=work;A.work.noB.(*p).noC.p->noD.work->no