若定义如下结构,则能打印出字母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


Tag:C语言编程新思路 语句 字母 时间:2021-11-29 16:13:59

相关答案

热门答案