以下程序的运行结果是__________。#include #define MA 1main( ){int a=10;#ifdef MAa=a-10;printf("%d\n",a);#elsea=a+10;printf("%d\n",a);#endif}
下面程序的输出结果是________。struct ks{ int a;int *b;}main(){ struct ks s[4],*p;int n=1,i;for(i=0;i<4;i++){ s[i].a=n;s[i].b=&s[i].a;n=n+2;}p=&s[0];printf("%d,%d\n",++(*p->b),*(s+2)->b);}
根据下面的定义,能打出字母M的语句是( )。struct person{ char name[9];int age;};struct person class[10]={ 〞John〞,17, 〞Paul〞,19, 〞Mary〞,18,〞Adam〞,16};
A. printf(〞%c\n〞,class[3].name);
B. printf(〞%c\n〞,class[3].name[1]);
C. printf(〞%c\n〞,class[2].name[1]);
D. printf(〞%c\n〞,class[2].name[0]);
下面程序的输出是( )。main(){ struct cmplx{int x;int y;}cnum[2]={1,3,2,7};printf("%d\n",cnum[0].y/cnum[0].x*cnum[1].x);}
A. 0
B. 1
C. 3
D. 6