[单选题]

以下程序的输出结果是______。 struct HAR {int x,y;struct HAR*p;}h[2]; 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->y); printf("%d%d/n",(h[0].p)->x,(h[1].p)->y); }

A.12

B.23

C.14

D.32

参考答案与解析:

相关试题

以下程序的输出结果是______。struct HAR{int x,y;stru

[单选题]以下程序的输出结果是______。 struct HAR {int x,y;struct HAR *p;} h[2]; 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.12B.23C.14D.32

  • 查看答案
  • 以下程序的输出结果是 ______。struct HAR{int x,y;str

    [单选题]以下程序的输出结果是 ______。 struct HAR {int x,y;struct HAR*p;}h[2]; 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.12B.23C.14D.32

  • 查看答案
  • 以下程序的输出结果是() struct st {int x;int * y;}*

    [单选题]以下程序的输出结果是 ( ) 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)); }A.10B.11C.51D.60

  • 查看答案
  • 下列程序的输出结果是______。struct st{int x;int*y;}

    [单选题]下列程序的输出结果是______。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,&dr[0],60,&dr[0],} main(){ p=aa; printf("%d/n",++(p->x));}A.51B.11C.10D.60

  • 查看答案
  • 以下程序的输出结果是______。sub(int x,int*y){*y=*y£

    [单选题]以下程序的输出结果是______。 sub(int x,int*y) {*y=*y-x;} main() { inta=1,b=2; sub(a,&B) ;sub(b,&A) ; printf("%d,%d/n",a,B) ; }A.1,0B.1,2C.0,1D.2,1

  • 查看答案
  • 以下程序的输出结果是int f(int x,int y){ return(y£­

    [主观题]以下程序的输出结果是int f(int x,int y){ return(y-x)*x; }main(){ int a=3,b=4,c=5,d; d=f(f(3,4),f(3,5)); printf("%d/n",d);}

  • 查看答案
  • 以下程序的输出结果是 ( ) fun (int x,int y, int z)

    [单选题]以下程序的输出结果是 ( ) fun (int x,int y, int z) { z=x * x+y * y;} main( ) { int a=31; fun(5,2,a); print{("%d",a); }A.0B.29C.31D.无定值

  • 查看答案
  • 以下程序的输出结果是______。fun(int x, int Y, int z

    [单选题]以下程序的输出结果是______。 fun(int x, int Y, int z) { z=x*x+y*y;} main() { int a=31; fun(5, 2, a); printf("% d", a); }A.0B.29C.31D.无定值

  • 查看答案
  • 以下程序的输出结果是______。fun(int x,int y,int z){

    [单选题]以下程序的输出结果是______。 fun(int x,int y,int z) {z=x*x+y*y;} main() { int a=31; fun(5,2,a); printf("%d",a); }A.0B.29C.31D.无定值

  • 查看答案
  • 以下程序的输出结果是 #include voidprt(int*x,int*y,

    [单选题]以下程序的输出结果是#includevoid prt (int *x, int *y, int *z){printf("%d,%d,%d\n",++*x,++*y,*(z++));}main(){int a=10,b=40,c=20;prt (&a,&b,&c);prt (&a,&b,&c);}A.11,42, 3112,22,41B.11,41,2012,42,20C.11,21,4011,21,21D.11,41,2112,42,22

  • 查看答案
  • 以下程序的输出结果是______。struct HAR{int x,y;stru