设有如下语句: struct student { int num; int age; }; struct student stu[3]={{101,18},{102,21},{103,19}}; struct student *p=stu; 则下面表达式的值为102的是( )
A: (p++)->num
B: (p++)->age
C: (*p).age
D: (*++p).num
A: (p++)->num
B: (p++)->age
C: (*p).age
D: (*++p).num
举一反三
- 设有如下语句:struct student{int num;int age;};struct student stu[3]={{101,18},{102,21},{103,19}};struct student *p=stu;则下面表达式的值为102的是( ) A: (p++)->num B: (p++)->age C: (*p).age D: (*++p).num
- struct Student{int num;int age;};int main(){struct Student stu[3] = {{1101, 18}, {2892, 19}, {3000, 20}};struct Student *p = stu;...} 若有定义和语句,则不正确的引用是( ) A: (p++)->num B: p=&stu.age C: p++ D: (*p).num
- 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 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++
- 若有以下定义的语句: struct student int age; int num;; struct student stu[3]=1001,20,1002,19,1003,21; main() struct student *p; p=stu; … 则以下不正确的引用是( )。 A: A) (p++)->num B: B) p++ C: C) (*p).num D: D) P=&stu.age.