以下程序的运行结果是________.struct ks {int a;int *b;}s[4],*p;main(){ int i,n=1; printf("\n"); for(i=0;i<4;i++) { s[i].a=n; s[i].b=&s[i].a; n=n+2;} p=&s[0];p++; printf("%d,%d\n",(++p)->a,(p++)->a);}
查看答案
struct st {int x;int y;} a[2]={5,7,2,9};main(){ printf("%d\n",a[0].y*a [1].x);}运行结果是( )
main( ){struct stu{int num;char a[5];float score;}m={1234,"wang",89.5}; printf("%d,%s,%f",m.num,m.a,m.score);}运行结果是
struct cmplx{int x;int y;} cnum[2]={1,3,2,7};main( ) { printf("%d\n",cnum[0].y*cnum[1].x );}运行结果是
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);}运行结果是