下列程序的输出结果是( )。struct abc{int a, b, c;};void main(){struct abc s[2]={{1,2,3},{4,5,6}};int t;t=s[0].a+s[1].b;printf("%d\n",t);}
A. 5
B. 6
C. 7
D. 8
以下程序的输出结果是( )。struct st{int x;int *y;} *p;int dt[4]={ 10,20,30,40 };struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]};void main(){p=aa;printf("%d\n",++(p->x));}
A. 10
B. 11
C. 51
D. 60
以下程序的输出结果是( )。struct HAR{int x, y;struct HAR *p;} h[2];void main(){h[0].x=1;h[0].y=2;h[1].x=3;h[1].y=4;h[0].p = &h[1], h[1].p = h;printf("%d%d\n", (h[0].p)->x, (h[1].p)->y);}
A. 12
B. 23
C. 14
D. 32
有以下程序:#include struct stu{int num;char name[10];int age;};void fun(struct stu *p){printf("%s\n",(*p).name);}void main(){struct stu students[3]={{9801,"Zhang",20},{9802,"Wang",19},{9803,"Zhao",18}};fun(students+2);}输出结果是( )
A. Zhang
B. Zhao
C. Wang
D. 18