‹ 上一题 下一题 ›

g3-03503. GESP-3级-2023-12-单选-第05题 未做

执行下面 C++ 代码后,输出是( )。

string str=("chen");
int x=str.length();
int temp=0;
for(int i=0;i<=x;i++)
{
    temp++;
}
cout<<temp<<endl;
  • A.
  • B.
  • C.
  • D.
未选择
输入
输出

            
答案