第20529题 判断题
判断该C++代码执行后的输出是否为chenadai

在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 }}%
答案解析