有以下程序#include struct NODE{int k;struct NODE *next;};main(){struct NODE m[5],*p=m,*q=m+4;int i=0;while (p!=q){p->k=++i;p++;q->k=i++;q--;}q->k=i;for(i=0;i<5;i++)printf("%d",m[i].k);printf("\n");}程序运行后的输出结果是( )
A. 13442
B. 13431
C. 01234
D. 02431
有以下程序:#includestruct STU{char name[9];char sex; int score[2];};viod f(struct STU a[]){ struct STU b={"Zhao",'m',85,90};a[1]=b;}main(){struct STU c[2]={{"Qian",'f',95,92},{"Sun",'m',98,99}};f(c);printf("%s,%c,%d,%d,",c[0].name,c[0].sex,c[0].score[0],c[0].score[1]);printf("%s,%c,%d,%d\n",c[1].name,c[1].sex,c[1].score[0],c[1].score[1]);}程序运行后输出结果是
A. Qian,f,95,92,Sun,m,98,99
B. Qian,f,95,92,Zhao,m,85,90
C. Zhao,m,85,90,Sun,m,98,99
D. Zhao,m,85,90,Qian,f,95,92
有以下定义struct person {char name[10];int age;};struct person class [10]={"Johu",17,"Paul",19,"Mary",18,"Adam",16,};输出字母M的语句是
A. printf("%c\n",class[2].name[0]);
B. printf("%c\n",class[3].name[0]);
C. printf("%c\n",class[3].name[1]);
D. printf("%c\n",class[2].name[1]);