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
A: (p++)->;num
B: p->;num
C: (*p).num
D: stu[3].age
举一反三
- struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu; 以下选项中引用错误的是___ __。
- struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu; 以下选项中引用错误的是___ __。
- 有以下说明和定义语句 , 以下选项中引用结构体变量成员的表达式错误的是( ) struct student { int age; char num[8];}; struct student stu[3]={{20,"200401"},{21,"200402"},{19,"200403"}}; struct student *p=stu;
- 若有以下定义和语句:struct student { int age,num ; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; int main() { struct student *p=stu; … }则以下正确的引用是()。 A: (p++)->num B: ++p->num C: (*p).num D: p->num
- 若有以下程序段,则使用错误的选项是( ).struct student{int num;int age;};struct student stu[3]={{1001,20},{1002,19},{1004,20}};main();{struct student *p;p=stu;…} A: p=stu.age B: (p++)-num C: (*p).num D: p++