题目内容
(请给出正确答案)
[主观题]
有以下程序:#include <iostream>#include <string>using namespace std;int main (){ char s[]="
有以下程序: #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://lstatic.shangxueba.com/sxbcn/h5/images/tips_org.png)