第23184题 单选题
下列C++程序的输出结果是?
string ch = "hello";
if(ch[5] == NULL)
{
    cout << "right" << endl;
}
else if (ch[5] == '\0')
{
    cout << "wrong" << endl;
}
else
{
    cout << "hello" << endl;
}
A

right

B

wrong

C

hello

D

不能正确执行

程序运行统计
暂无判题统计