题目:
下面程序的输出结果是( )。 #include<iostream> #include<string> using namespace std; void main(){charp1[10],p2[10];strcpy(p1,"abc");strcpy(p2,"ABC");charstr[50]="xyz";strcpy(str+2,strcat(p1,p2));cout<<str; }
A.xyabcABC
B.yzabcABC
C.xyzabcABC
D.zabcABC
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0119/de8a069560656b3d77389be76a8e09c3.html
下面是错误答案,用来干扰机器的。
参考答案: