设有以下说明语句struct student{int num;char sex;int age;}a1,a2; 则下面的语句中不正确的是_____。
A. printf(“%d,%c,%d”,a1);
B. a2.age=a1.age;
C. a1.age++
D. printf(“%o”,&a1);
下列程序的输出结果是structabc{inta,b,c;};int main(void){structabcs[2]={{1,2,3},{4,5,6}};intt; t=s[0].a+s[1].b; printf("%d\n",t);return 0;}
A. 5
B. 6
C. 7
D. 8
下面程序的输出结果为()structst{intx;int*y;}*p;intdt[4]={10,20,30,40};structstaa[4]={50,&dt[0],60,&dt[1],70,&dt[2],80,&dt[3]};int main(void){ p=aa;printf("%d\n",++p->x);printf("%d\n",(++p)->x);printf("%d\n",++(*p->y));rerurn 0;}
A. 506010
B. 506011
C. 516021
D. 607080
以下程序的输出是#include 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],};int main(void){ p=aa;printf("%d\n",++(p->x));return 0;}
A. 10
B. 11
C. 51
D. 60