第20219题 单选
执行以下C++代码的输出结果是?
string str = ("chen");
int x = str.length();
int temp = 0;
for(int i=0; i<=x; i++) {
    temp++;
}
cout << temp << endl;
A

4

B

2

C

5

D

3

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析