以下程序的运行结果是________.struct n{int x;char c;};func(struct n b) { b.x=20; b.c='y'; }main() {struct n a={10,'x'}; func(a); printf("%d,%c",a.x,a.c); }
查看答案
以下程序的运行结果是________.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 );}运行结果是