问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

根据下列的定义 能打印出字母P的语句是()。struct stu {char name[10]; int age;}; struct sm s[1


根据下列的定义,能打印出字母P的语句是()。 struct stu {char name[10]; int age; }; struct sm s[10]={"John",11, "Pau1",12, "Mary",11, "adam",12 };

A.printf("%c",s[3].name);

B.printf("%c",s[3].name[1]);

C.printf("%c",s[2].name[1]);

D.printf("%c",s[1].name[0]);

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题