单选题 以下程序的输出结果是 #include<stdio.h> struct st i int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,&dt[0],60,&dt[0],60,&it[0],60,&dt[0],}; main() { p=aa; printf("%d/n",++(p->x));}
【正确答案】 C
【答案解析】[命题目的] 考查结构体成员数据的引用方法。 [解题要点] 通过指针来引用结构体成员的方法是(指针变量)->结构体成员名。 [考点链接] 结构体变量中的数据引用。