A-A+

有以下程序 main() { char st[20]=hellot'\; printf(

2022-08-06 06:42:01 问答库 阅读 176 次

问题详情

有以下程序 main() { char st[20]="hellot"\"; printf("%d%dn",strlen(st),sizeof(st)); } 程序运行后的输出结果是()
A.9 9
B.5 20
C.13 20
D.20 20请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:B

考点:程序