单选题
以下程序的输出结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char *p1=",hello",*p2="world!",str[50]:"Hii"; strcpy(str+2,p1); strcat(str,p2); cout<<str; }
A、
Hii,hello world!
B、
hello world!
C、
ii,hello world!
D、
Hi,hello world!
【正确答案】
D
【答案解析】
提交答案
关闭