问题 单项选择题

以下程序的输出结果是 ______。 #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

问答题 简答题
判断题