填空题
设char *st="China\0Beijing";,执行语句printf("%s",st);后的输出结果是
1
。
1、
【正确答案】
1、China
【答案解析】
printf在用%s格式输出时,遇到‘/0’,认为字符串结束,所以后面的不再输出。
提交答案
关闭