若定义如下结构,则能打印出字母M的语句是()。 struct person{ char name[9]; int age;}; struct person class[10]={"Wujun",20, "Liudan",23, "Maling",21, "zhangming",22};
若定义如下结构,则能打印出字母M的语句是()。 struct person{ char name[9]; int age;}; struct person class[10]={"Wujun",20, "Liudan",23, "Maling",21, "zhangming",22};
A.printf("%c\n",class[3].name);
B.printf("%c\n",class[2].name[0]);
C.printf("%c\n",class[2].name[1]);
D.printf("%c\n",class[3].name[1]);
正确答案:B