[单选题]

有以下说明和定义语句 struct student { int age;char num[8]; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"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++)->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 student { int age; cha

    [单选题]有以下说明和定义语句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[3].age

  • 查看答案
  • 有如下说明和定义语句:structstudent{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 student { int age; int

    [单选题]若有以下定义的语句struct student{ int age;int num; };struct student stu[3]={{1001,20},{1002,19},{1003,21}};main(){ struct student *p;p=stu;… }则以下不正确的引用是A.(p++)->numB.p++C.(*p).numD.P=&stu.age.

  • 查看答案
  • 若有以下定义的语句 struct student { int age; int

    [单选题]若有以下定义的语句struct student{ int age;int num; };struct student stu[3]={{1001,20},{1002,19},{1003,21}};main(){ struct student *p;p=stu;… }则以下不正确的引用是A.(p++)->numB.p++C.(*p).numD.P=&stu.age.

  • 查看答案
  • 若有以下定义的语句struct student{int age;int num;

    [单选题]若有以下定义的语句 struct student {int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; main() {stmct student *p; p=stu; …} 则以下不正确的引用是A.(p++)->numB.p++C.(*p).numD.P=&stu.age.

  • 查看答案
  • 若有定义和语句:struct student { int num; char n

    [主观题]若有定义和语句:struct student { int num; char name[10]; float score;} s[5]={{1,"lili",98.5},{9,"xiaohua",66}},*p=s;printf("%d",*p++);输出结果是1。( )此题为判断题(对,错)。

  • 查看答案
  • 有以下定义和语句:struct students{int num;char na

    [单选题]有以下定义和语句: struct students {int num;char name[20];char c; struct {int grade1;int grade2;}s; }; struct students w,*pw; *pw=w; 下列赋值语句不正确的是( )。A.w.num=1002;B.w.grade1=85;C.pw->num=1002;D.w.s.grade2=85;

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