全部题库 / C语言 / 试题详情
单选题 C语言
2008-09-18

有如下定义 
struct person{char name[9];int age;}; 
struct person class[10]={"John",17,"paul",19,"Mary",18,"Adam",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]);

参考答案

B

答案解析

暂无解析

你可能感兴趣的试题