下面程序的输出结果是#includestdio.h#includestring.hmain(){ char *p1="abc",*p2="ABC",str[50]= "xyz";strcpy(str+2,strcat(p1,p2));printf("%s\n",str);}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
下面程序的输出结果是
#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
相关考题:
下面程序的输出结果是includeincludemain(){char *pl="abc",*p2="ABC",str 下面程序的输出结果是 #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.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
下面程序的输出结果是( )。 include main() {static char a[]="china"; char*ptr=a; whi 下面程序的输出结果是( )。 include<stdio.h> main() {static char a[]="china"; char*ptr=a; while(*ptr) {printf("%c",*ptr-32); ptr++; } }
下列程序的输出结果是______。includemain(){char*p1,*p2,str[50]="xyz"; p1="abcd"; p 下列程序的输出结果是______。 #include<stdio.h> main() { char *p1,*p2,str[50]="xyz"; p1="abcd"; p2="ABCD"; strcpy(str+2,strcat(p1+2,p2+1)); ptintf("%s",str); }A.xyabcABB.abcABzC.ABabczD.xycdBCD
下面程序的输出结果是______。includemain(){char*p1="abc",*p2="ABC",s[20]="xyz"; s 下面程序的输出结果是______。 #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.xABCabcB.zABCabcC.yzabcABCD.xyzABCabc
有以下程序:void fun (char *a,char *b){a=b;(*a)++;}main(){char cl='A',c2='a',*p1,*p2;p1=(*a)++;} main() { char cl='A',c2='a',*p1,*p2; p1=c1;p2=c2;fun (p1,p2); printf("%c,%c\n",c1,c2); } 程序运行后的输出结果是( )。A.AbB.aaC.AaD.Bb
下面程序的输出结果是 ( ) include include { char * p1="abc" , * 下面程序的输出结果是 ( ) # 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.xyzabcABB.zabcABCC.yzabcABCD.xycbcABC
下面程序的输出结果是includeincludemain(){char *p1="abc",*p2="ABC",str 下面程序的输出结果是 #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.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
有以下程序:includevoid fun(char *a, char *b){ a=b;(*a)++;}main(){char c1='A',c2= 有以下程序: #include <stdio.h> void fun(char *a, char *b) { a=b; (*a)++;} main() { char c1='A',c2='a',*p1,*p2; p1=c1; P2=c2; fun(p1,p2); printf("%c%c\n",c1,c2); } 程序运行后的输出结果是( )。A.AbB.aaC.AaD.Bb
下面程序的输出结果是includeincludemain(){char*p1="abc",*p2="ABC",str[ 下面程序的输出结果是 #include<stdio.h> #include<string.h> main() { char*p1="abc",*p2="ABC",str[50]="xyz"; strcpy(str+2,streat(p1,p2)); printf("%s\n",str);}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
下面程序输出的结果是()。includemain(){char *a="1234";fun(a);printf("\n");}fun(cha 下面程序输出的结果是( )。 #include<stdio.h> main() { char *a="1234"; fun(a); printf("\n"); } fun(char *s) { char t; if(*s) { t=*S++;fun(s);} else return; if(t!='\0') putchar(t); }A.1234B.4321C.1324D.4231