第22506题 判断题
判断给定C++字符串拼接代码的输出结果是否为chenadai

在C++中,两个字符串相加的运算符+相当于字符串的合并运算。给定以下C++代码,执行后将输出chenadai。( )

string a="chen";
string b="a";
string c="dai";
string name=a+b+c;
cout<<name<<endl;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析