A.(p++)-num
B.p++
C.(*p).num
D.p=stu.age
第1题:
以下对结构变量stu1中成员age的非法引用是() struct student { int age; int num; }; struct student stu1, *p; p=&stu1;
A.stu1.age
B.student.age
C.p->age
D.(*p).age
第2题:
若有以下程序段,则使用错误的选项是(). struct student { int num; int age; }; struct student stu[3]={{1001,20},{1002,19},{1004,20}}; void main(); { struct student *p; p=stu; … }
A.p++
B.(*p).num
C.(p++)->num
D.p=&stu.age
第3题:
若有以下程序段,则使用错误的选项是(). 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++
第4题:
【单选题】若有以下定义和语句 struct student { int age; int num;}; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; int main() {struct student *p; p=stu;……} 则以下不正确的引用是()。
A.(p++)->num
B.p++
C.(*p).num
D.p=&stu.ag
第5题:
若有以下定义和语句,则选项中不正确的引用是: struct student { int num; int age; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; int main() { struct student *p; p=stu; ... }
A.(p++)->num
B.p++
C.(*p).num
D.p=&stu.age