测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

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 }

选项(单选)