第6题: [单项选择]有下列程序: #include<stdio.h> main( ) char*s="ABC"; do printf("%d",*s%10);s++; while(*s);
注意:字母A的ASCII码值为65。程序运行后的输出结果是( )。 A. 5670 B. 656667 C. 567 D. ABC 参考答案:C 答案解析:[解析] 本题考查do while语句,至少执行一次循环体,依次输出ABC这三个字母的ASCII值对10求模的余数,字母A的ASCII值对10求模的余数为5,字母B的ASCII值对10求模的余数为6,
第24题:[多选题]The purpose of the United Nations are: A. to maintain international peace and security. B. to develop friendly relations among nations. C. to achieve international cooperation in solving international problems. D. to be a center for harmonizing the actions of nations. 参考答案:ABCD