若有以下说明和定义语句,则下面引用形式中不正确的是 ( )。 struct student { int age; int num; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; struct student *p; p=stu;
举一反三
- 中国大学MOOC: 若有以下定义和语句:struct student{ int age,num ;};struct student stu[3]={{1001,20},{1002,19},{1003,21}};int main(){ struct student *p=stu; …}则以下正确的引用是()。
- 若有以下定义和语句: struct student {int num ;int age;}; struct student stu[3]={{l001,20},{1002,19},{1003,2l}}; main() {struct student *p;p=stu; ... } 则下列引用中不正确的是
- 有以下定义和语句: struct student { int age; int num; }; struct student stu[3]={{1001,20},{1002,19},{1003,21}}; void main() { struct student *p; 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},{1003,21}} ;main ( ){struct student*p ;p = stu ;. . .}则以下不正确的引用是( )。 A: (p+ + )->; age B: p + + C: (*p).age D: p = &stu. num