下面程序的输出结果是
#include< stdio.h>
#include< string.h>
main( )
char p1[20]="abc", *p2="ABC", str[50]="xyz";
strcpy(str+2, strcat(p1, p2));
printf("%s/n", str);
A:xyzabcABC B:zabcABC C:xyabcABC D:yzabcABC
下面程序的输出结果是 ( )
# include<stdio.h>
# include<string.h>
char * p1="abc" , * p2=" ABC ",str[50]="xyz";
strcpy(str+2.strcat (pi,p2));
printf("%s//n",str);
A:xyzabcAB B:zabcABC C:yzabcABC D:xycbcABC
以下程序
#include<stdio.h>
#include<string.h>
main( )
char*p1="abc",*p2="ABC",str[50]="xyz",
strcpy(str+2,strcat(p1,p2));
printf("%s/n",str);
的输出是______。
A:xyzabcABC B:zabcABC C:yzabcABC D:xyabcABC
下面程序的输出结果是
#include<stdio.h>
#include<string.h>
main( )
char *p1="abc",*p2="ABC",str[50]="xyz";
strcpy(str+2,strcat(p1,p2));
printf("%s/n",str);
A:xyzabcABC B:zabcABC C:xyabcABC D:yzabcABC
下面程序的输出结果是( )。
#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
下面程序的输出结果是( )。 #include<iostream.h> #include<string.h> void main( ) { char p1[10],p2[10]; strcpy(p1,”abc”); strcpy(p2,”ABC”); charsty[50]=“xyz”; strcpy(str+2,strcat(p1,p2)); cout<<str; }
A:xyzabcABC B:zabcABC C:xyabcABC D:yzabcABC
下面程序的输出结果是______。 #include<string.h> main( ) { char*p1="abc",*p2="ABC",s[20]="xyz"; strcpy(s+1,p2); strcat(s+2,p1); printf("%s/n",s); }
A:xABCabc B:zABCabc C:yzabcABC D:xyzABCabc
下面程序的输出结果是 #include<stdio.h> #include<string.h> main( ) { char *pl="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2,strcat(p1,p2)); printf("%s/n",str);}
A:xyzabcABC B:zabcABC C:xyabcABC D:yzabcABC
下面程序的输出结果是() #include<iostream.h> #include<string.h>void main( ) { char p1[10] ,p2[10] ; strcpy(p1,"abc") ; strcpy(p2,"ABC") ; char str[50] ="xyz"; strcpy(str+2,strcat(p1,p2) ) ; cout < < str;}
A:xyzabcABC B:zabcABC C:xyabcABC D:yzabcABC