高等继续教育 / C语言程序设计
正确率:100%
题型描述: 多选题
根据定义: struct person{char name[9];int age;}; struct person c[10]={"John",17,"Paul",19,"Mary",18,"Adam",16}; 能打印出字母M的语句是:
A.printf("%s",c[3].name[2]);
B.printf("%s",c[1].name[0]);
C.printf("%s",c[2].name[1]);
D.printf("%s",c[0].name);
根据定义: struct person{char name[9];int age;}; struct person c[10]={"John",17,"Paul",19,"Mary",18,"Adam",16}; 能打印出字母M的语句是:
A.printf("%s",c[3].name[2]);
B.printf("%s",c[1].name[0]);
C.printf("%s",c[2].name[1]);
D.printf("%s",c[0].name);
参考答案:
佳题速递: