[单选题]

有以下结构体说明,变量定义和赋值语句: struct STD {char name[10]; int age; char ***; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误的结构体变量成员是( )。

A.scanf("%s",s[0].name);

B.scanf("%d",&s[0].age);

C.scanf("%c",&(ps->***));

D.scanf("%d",ps->age);

参考答案与解析:

相关试题

有以下结构体说明、变量定义和赋值语句struct STD{ char name[

[单选题]有以下结构体说明、变量定义和赋值语句struct STD{ char name[10];int age;char sex;} s[5],*ps;ps=&s[0];则以下 scanf 函数调用语句中错误引用结构体变量成员的是A.)scanf("%s",s[0].name);B.)scanf("%d",&s[0].age);C.)scanf("%c",&(ps->sex));D.)scanf("%d",ps->age);

  • 查看答案
  • 有以下结构体说明、变量定义和赋值语句 struct STD { char nam

    [单选题]有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误引用结构体变量成员的是______。A.scanf("%s",s[0].name);B.scanf("%d",&s[0].age);C.scanf("%c",&(ps->sex));D.scanf("%d",ps->age);

  • 查看答案
  • 有以下结构体说明、变量定义和赋值语句 struct STD { char nam

    [单选题]有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误引用结构体变量成员的是______。A.scanf("%s",s[0].name);B.scanf("%d",&s[0].age);C.scanf("%c",&(ps->sex));D.scanf("%d",ps->age);

  • 查看答案
  • 有以下定义和语句Struct Workers{int num;char name

    [单选题]有以下定义和语句Struct Workers{ int num;char name[20];char c;struct{ int day;int month;int year;}s;};Struct Workers W,*pe;PW=&W;能给W中yeaR成员赋1980的语句是A.*pW.yeaR=1980;B.W.yeaR=1980;C.pW->yeaR=1980;D.W.s.yeaR=1980;

  • 查看答案
  • 有以下说明和定义语句struct student{ int age; char

    [单选题]有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200401"},{21,"200402"},{10/9,"200403"}};struct student *p=stu;以下选项中引用结构体变量成员的表达式错误的是A.(p++)->num B.p->num C.(*p).num D.stu[3].age

  • 查看答案
  • 有以下说明和定义语句 struct student {int age;char

    [单选题]有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20,"200401"},{21,"200402"},{10/9,"200403"}}; struct student*p=stu;以下选项中引用结构体变量成员的表达式错误的是______。A.(p++)->numB.p->numC.*p.numD.stu[0].age

  • 查看答案
  • 有以下说明和定义语句:struct student{int age; char

    [单选题]有以下说明和定义语句:struct student{int age; char num[8] ;};struct student stu [3] = { { 20, "200401" } , {21, "200402" } , {19, "200403" } };stract student * p = stu;以下选项中引用结构体变量成员的表达错误的是( )。A.(p++) ->numB.p- >numC.( *p).numD.stu[3].age

  • 查看答案
  • 定义结构体数组: struct stu {int num; char name[

    [单选题]定义结构体数组:struct stu{ int num;char name[20];}x[5]={1,"LI",2,"ZHAO",3,"WANG",4,"ZHANG",5,"LIU"};for(i=1;i<5;i++)printf("%d%c",x[i].num,x[i].name[2];以上程序段的输出结果为( )。A.2A3N4A5UB.112A3H41C.1A2N3A4UD.2H3A4H51

  • 查看答案
  • 有以下说明和定义语句struct student{int age;char nu

    [单选题]有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;}; 以下选项中引用结构体变量成员的表达式错误的是A.(p++)->numB.p->numC.(*p).numD.stu[3].age

  • 查看答案
  • 定义结构体数组struct stu{ int num;char name[20]

    [单选题]定义结构体数组 struct stu { int num; char name[20]; }x[5]={1,"ZHAO",2,"QIAN",3,"SUN",4,"LEE",5,"ZHOU"}; for(i=1;i<5;i++) printf("%d%c",x[i].num,x[i].name[2]); 程序执行后的输出结果是( )。A.2A3N4E5OB.1H2I3U4EC.1A2N3E4OD.1A2N3E4O

  • 查看答案
  • 有以下结构体说明,变量定义和赋值语句:struct STD{char name[