以下程序的输出结果是( )。 {int x;int*y;}*p; int dt[4]={1,2,3,4}; struct st aa[4]={2,&dt[0],3,&dt[0],4,&dt[0],5,&dt[0],}; {p=aa; pfintf("%d\n",++(p->x)); }
A: 1
B: 2
C: 3
D: 4
A: 1
B: 2
C: 3
D: 4
举一反三
- 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
- 以下程序的输出结果是( ). 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 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\n",++(p->x)); }
- 中国大学MOOC: 以下程序的输出是()。structst{intx;int*y;}*p;intdt[4]={10,20,30,40};structstaa[4]={50,&dt[0],60,&dt[0],60,&dt[0],60,&dt[0]};intmain(){p=aa;printf("%d ",++(p->x));}