单选题 C++
题号 #144324

有如下程序:  
#include 
using namespace std;  
int main()  
{  
char str[100],*p;  
cout <<”please input a string:”; 
cin >>str; 
p=str;  
for(int i =0;*p!=”\0”;p++, i ++);  
cout << i < retum 0; 
}  
运行这个程序时,若输入字符串为  
abcdefg abcd  
则输出结果是(  )。

进入在线模考

参考答案

A

答案解析

暂无解析

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考