有如下定义:struct person {char name[9];int age;};struct person class[10]={“Johu”,17,“Paul”,19,“Mary”,18,“Adma”,16,};则下面能输出字母M的语句是:
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]);
#include 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