以下scanf函数调用语句中,对结构体变量成员的不正确引用是()。 struct pupil {char name[20 ]; int age ; int sex; }pup[5],*p; p=pup;
A.scanf(“%s“,pup[0].name);
B.scanf(“%d“,&pup[0].age);
C.scanf(“%d“,&sex);
D.scanf(“%d“,P->age);
设有如下定义 struct ss { char name[10]; int age; char sex; }std[3], * p=std; 下面各输入语句中错误的是A.cin>>(* p).age);B.cin>>std.name);C.cin>>std[0].sex);D.cin>>(p->.sex));
点击查看答案
下列关于结构型变量的定义语句中,错误的是( )A.typedef struct CCCB.define GGG struct { char name[20];GGG CCC { char name[20]; int age; int age; }GGG; }; GGG abc ; GGG CCC abc;C.structD.struct { char name[20]; { char name[20]; int age; int age; }ccc; }abc; CCC abc;
以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。 struct node{ char name[20]; int age; int sex; }student[5],*p; p=student; A、scanf(“%s”,student[0].name);B、scanf(“%d”,&student[0].age);C、scanf(“%d”,&(p->sex));D、scanf(“%d”,p->age);
若有以下说明和语句: struct student{ int age; int num; }std, *p; p=&std; 则下面对该结构体变量std中成员age的引用方式错误的是()。 A、std.ageB、*p.ageC、(*p).ageD、p->age
单选题若有以下说明和语句: struct student{ int age; int num; }std, *p; p=&std; 则下面对该结构体变量std中成员age的引用方式错误的是()。A std.ageB *p.ageC (*p).ageD p->age
单选题有以下函数:#include struct stu{ int num; char name[10]; int age;};void fun(struct stu *p){ printf(%s, p->name);}main(){ struct stu x[3] = {{01,Zhang,20}, {02,Wang,19}, {03,Zhao,18}}; fun(x+2);}程序运行后的输出结果是( )。A ZhangB ZhaoC WangD 19
单选题以下scanf函数调用语句中对结构体变量成员的不正确引用的是()。 struct node{ char name[20]; int age; int sex; }student[5],*p; p=student;A scanf(“%s”,student[0].name);B scanf(“%d”,&student[0].age);C scanf(“%d”,&(p->sex));D scanf(“%d”,p->age);