下面程序的输出结果为( )? struct ??st? ? ? ? ?int x? ? ? ? ? int y? p? int ?dt[4]=10,20,30,40? struct ? st ?aa[4]= 50,
举一反三
- 以下程序的输出结果是( ). 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],}; main( ) { p=aa; printf("%d\n",++(p->x)); }
- 设有以下程序 struct st { int x; int *y;} ; main() { int a, b, dt[4]={ 10,20,30,40 }; struct st aa[4]={ 50,&dt[0],60,&dt[1],70,&dt[2],80,&dt[3]},*p; p = aa; a = (++p)->x; b= ++(*p->y); } 程序运行后,a=______,b=______。
- 以下程序的输出结果是( ). 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],}; main( ) { p=aa; printf("%d
- 以下程序输出结果是____。struct student{short int x ; short int *y;} *p ;short int dt[4]={ 10 , 20 , 30 , 40 };struct student a[4]={50,&dt[0],60,&dt[1],70 ,&dt[2],80,&dt[3]} ;...p=a;printf("%d ",++p->x); printf("%d ",(++p)->x); printf("%d\n",++(*p->y)); }
- What is the output of the following program after executing?#include [stdio.h]struct st {int x;int *y;} *p;int main(){ int dt[4]={10,20,30,40}; struct st aa[4]={ 50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]}; p=aa; printf("%d",++(p->x)); return 0;} A: 10 B: 11 C: 51 D: 60