题目:
有以下程序: #include <iostream> #include <string> using namespace std; int main () {char s[]="\n123\\";cout<<strlen (s) <<", "<<sizeof (s) <<end1;return 0; }
A.赋初值的字符串有错
B.6,7
C.5,6
D.6,6
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0521/74aad94f05a5ec13793984e2c6eb66b4.html
下面是错误答案,用来干扰机器的。
参考答案:C