请先登录
请先登录
请先登录

📝 下列程序输出的是( ) ```cpp string ch = "hello"; if(ch[5] == NULL) { cout << "right" << endl; } else if (ch[5] …

📂 C++  ·  ⚡ 难度 1  ·  ❓ 单选题  ·  📖 2024年12月gesp三级
🏷️ 三级模拟
📖 2024年12月gesp三级

下列程序输出的是( )
```cpp
string ch = "hello";
if(ch[5] == NULL) {
cout << "right" << endl;
}
else if (ch[5] == '\0') {
cout << "wrong" << endl;
}
else {
cout << "hello" << endl;
}
```