当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20 2


有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}}; struct student*p=stu;以下选项中引用结构体变量成员的表达式错误的是______。

A.(p++)->num

B.p->num

C.*p.num

D.stu[0].age

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 若有以下说明和语句 struct student {int age; int num; }std, *p; p=&std; 则以下对结构体变量std

  • 有以下说明和定义语句struct student{ int age; char num[8];};struct student stu[3]={{20,"200" />