struct a *f(int t1,int *t2,strcut a t3,struct a *t4)
struct a p,*p1;int i;
则正确的函数调用语句为
A.&p=f(10,&i,p,p1);
B.p1=f(i++,(int *)p1,p,&p);
C.p=f(i+1,&(i+2),*p,p);
D.f(i+1,&i,p,p);
[单选题]已知函数的原形如下,其中结构体a为已经定义过的结构,且有下列变量定义 struct a*f(int t1,int*t2,strcut a t3,struct a*t4) struct a p,*p1;int i; 则正确的函数调用语句为A.&p=f(10,&i,p,p1);B.p1=f(i++,(int*)p1,p,&p);C.p=f(i+1,&(i+2),*p,p);D.f(i+1,&i,p,p);
[单选题]下列结构体类型说明和变量定义中正确的是( )。A.typedef struct {int n; char c;}REC; REC t1,t2;B.struct REC; {int n; char c;}; REC t1,t2;C.typedef struct REC; { int n=0; char c='A';} t1,t2;D.stmct { int n; char c;} REC; REC t1,t2;
[单选题]以下选项中,能定义s为合法的结构体变量的是( )。A.typedef struct abc { double a; char b[10]; } s;B.struct { double a; char b[10]; }s;C.struct ABC { double a; char b[10]; } ABC s;D.typedef ABC { double a; char b[10]; } ABC s;
[单选题]设定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。Struct st{ int x;inty;int z;}Struct worker{ char name[20];char sex;struct st birth;}p;A.x=1987B.birth.x=1987;C.p.birth.x=1987;D.p.x=1987;
[单选题]若定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。 struct st { int x; int y; int z; } struct worker { char name[20]; char sex; struct st birth; }p;A.x=1987B.birth.x=1987;C.p.birth.x=1987;D.p.x=1987;
[单选题]设定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。 stmct st { int x; int y; int z; } struct worker { char name[20]; char sex; struct st birth; }p;A.x=1987B.birth.x=1987;C.p.birth.x=1987;D.p.x=1987;
[单选题]设定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。 struct st { int x; int y; int z; } struct worker { char name[20]; char sex; struct st birth; }p;A.x=1987B.birth.x=1987;C.p.birth.x=1987;D.p.x=1987;
[单选题]已知函数tEst定义为:voiDtEst() { ………… }则函数定义中voiD的含义是()A.执行函数tEst后,函数没有返回值B.执行函数tEst后,函数不再返回C.执行函数tEst后,函数返回任意类型值D.以上三个答案都是错误的
[单选题]函数t、f的定义如下所示,其中,a是整型全局变量。设调用函数t前a的值为5,则在函数中以传值调用(callbyvalue)方式调用函数f时,输出为(1);在函数t中以引用调用(callbyreference)方式调用函数时,输出为(2)()。空白(2)处应选择A . 12B . 16C . 20D . 24
[单选题]以下结构体类型说明和变量定义中正确的是( )。A.typedef structB.struct REC; {int n;char c;}REC; {int n;char c;}; REC t1,t2; REC t1,t2;C.typedef struct REC;D.struct {int n=0;char c='A';}t1,t2; {int n;char c;}REC; REC t1,t2;