• 2021-04-14
    有以下说明和定义语句 structstudent {int age; char num[8];}; structstudentstu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; structstudent *p=stu; 以下选项中引用结构体变量成员的表达式错误的是______。
  • stu[3].age

    内容

    • 0

      若有以下定义语句:structstudent{intnum,age;};structstudentstu[3]={{101,20},{102,19},{103,18}},*p=stu;则以下错误的引用是()

    • 1

      已知有结构定义和变量声明如下:structstudent{charname[20];intscore;structstudent*h;}stu,*p;int*q;以下选项中有语法错误的是()。

    • 2

      若能使程序运行后的输出结果如下: 201501 则空白处填写的表达式或语句应该是 #include structstudent { intage; charnum[8]; }; intmain() { structstudentstu[3]={{20,"201501"},{21,"201502"},{19,"201503"}}; structstudent*p=stu; ____________________ return0; }

    • 3

      设有变量定义 struct stu { int age; int num; }std,*p=&std; 能正确引用结构体变量std中成员age的表达式是_____

    • 4

      1、设有变量定义 struct stu{int age; int num;}std,*p=&std;能正确引用结构体变量std中成员age的表达式是A) std->age B) *std->ageC) *p.age D) (*p).age