A66590. 下列程序输出的是( )1 string ch="hello";
单选题
知识点
题目描述
下列程序输出的是( )
1 string ch="hello";
2 if(ch[5]==NULL)
3{
4 cout<<"right"<<endl;
5 }
6 else if (ch[5]=='\0')
7 {
8 cout<<"wrong"<<endl;
9 }
10 else
11 {
12 cout<<"hello"<<endl;
13 }选项(单选)
答案解析
详细答案解析为会员权益,按每日次数查看。
开通 / 升级会员