更多"以下程序的输出结果是 ( ) struct st int x;"的相关试题:
[单项选择]以下程序的输出结果是 ( ) 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. 10
B. 11
C. 51
D. 60
[单项选择]以下程序的输出结果是
#include<stdio.h>
struct st
i int x;int *y;*p;
int dt[4]=10,20,30,40;
struct st aa[4]=50,&dt[0],60,&dt[0],60,&it[0],60,&dt[0],;
main( )
p=aa;
printf("%d/n",++(p->x));
A. 10
B. 11
C. 51
D. 60
[单项选择]以下程序的输出结果是 #include<stdio.h> 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. 10
B. 11
C. 51
D. 60
[单项选择]以下程序的输出结果是( )。
#include<stdio.h>
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. 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,&dr[0],60,&dr[0],} main( ){ p=aa; printf("%d/n",++(p->x));}
A. 51
B. 11
C. 10
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,&dr[0],60,&dr[0],
main( )
p=aa;
printf("%d/n",++(p->x));
A. 51
B. 11
C. 10
D. 60
[单项选择]以下程序的输出结果是______。
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);
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
struct ord
int x, y; dt[2]=1, 2, 3, 4;
main( )
struct ord *P=dt;
printf("%d,", ++p->x); printf("%d/n", ++p->y);
A. 1,2
B. 2,3
C. 3,4
D. 4,1
[单项选择]下面程序的输出结果是( )。
main( )
struct m1int a;int b;en[2]=1,3,2,7);
printf("%d/n",en[0].b/en[0].a*en[1].
A. ;A) 6B) 0C) 1D
[单项选择]以下程序的输出结果是
union myun
struct
int x,y,z; u;
int k; a;
main( )
a.u.x=4;a.u.y=5;a.u.z=6;
a.k=0;
printf("%d/n",a.u.x);
A. 4
B. 5
C. 6
D. 0
[单项选择]下列程序的输出结果是______。 struct exmple { int x; int y; }num[2]=}1,2,3,2}; main( ) { printf("%d/n",num[1].y*num[0].x/num[1].x);}
A. 0
B. 1
C. 3
D. 6
[单项选择]下列程序的输出结果是______。 struct abc { int a,b,c;}; 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 abc { int a,b,c; } main( ) { struct abc s [2]={{1,2,3},{4,5,6}}; int t=-s[0].a+s[1].b; printf("%d/n",t); }
A. 5
B. 6
C. 7
D. 8
[单项选择]以下程序的输出结果是______。 structHAR {int x,y;structHAR*p;}; main( ) { h[0].x=1;h[0].y=2; h[1].x=3;h[1].y=4; h[0].p=&h[1].p=h; printf("%d%d/n",(h[0].p->y)); }
A. 12
B. 23
C. 14
D. 32