A-A+

有以下说明和定义语句 struct student { int age; char num[

2022-08-06 02:55:23 问答库 阅读 175 次

问题详情

有以下说明和定义语句 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请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:D

考点:语句,定义