char*p;p=StrCat(“ABD”,”ABC”);Printf(“%s”,p);的显示结果为()。A、-1B、ABDABCC、ABD、1

char*p;p=StrCat(“ABD”,”ABC”);Printf(“%s”,p);的显示结果为()。

  • A、-1
  • B、ABDABC
  • C、AB
  • D、1

相关考题:

有以下程序#include string.hmain( ){ char p[20]={ 'a', 'b', 'c', 'd'},q[]="abc", r[]="abcde"strcat(p,r); s trcpy(p+strlen(q),q);p rintf("%d\n", strlen (p));}程序运行后的输出结果是A)9B)6C)11D)7

有以下程序#includemain(){char p[20]={‘a’,’b’,’c’,’d’},q[]=”abc”, r[]=”abcde”;strcpy(p+strlen(q),r); strcat(p,q);printf(“%d%d\n”,sizeof(p),strlen(p));}程序运行后的输出结果是( )。A.20 9B.9 9C.20 11D.11 11

有以下程序#includemain(){char p[20]={‘a’,’b’,’c’,’d’},q[]=”abc”, r[]=”abcde”strcat(p,r); Strcpy(p+strlen(q),q);Printf(“%d \n”,sizeof(p));}程序运行后的输出结果是( )。A.9B.6C.11D.7

下面程序的输出结果是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

有以下程序:includestrintg.hmain{ char p[20]={a,b,c,d),q[]=abc,r[]=strintg.hmain{ char p[20]={a,b,c,d),q[]=abc,r[]=abcde;strcpy(p+strlen(q),r);strcat(p,q);printf(%d%d\n,sizeof(p),strlen(p));}程序运行后的输出结果是( )。A.20 9B.9 9C.20 11D.11 11

有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[] 有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcpy(p+strlen(q),r);strcat(p,q); printf("%d%d\n",sizeof(p),strlen(p)); } 程序运行后的输出结果是A.20 9B.9 9C.20 11D.11 11

有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[] 有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcat(p,r);strcpy(p+strlen(q),q); printf("%d\n",strlen(p)); } 程序运行后的输出结果是A.9B.6C.11D.7

有以下程序:includemain(){char *p,*q;p=(char*)malloc(sizeof(char)*20);q=p;scanf( 有以下程序: #include <stdlib.h> main() { char *p,*q; p=(char*)malloc(sizeof(char)*20); q=p; scanf("%s%s",p,q); ptintf("%s%s\n",p,q); } 若从键盘输入abc def<回车>,则输出的结果是( )。A.def defB.abc defC.abc dD.d d

下面程序的输出结果是#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#includevoid main(){char p1[10],p2[10];strepy(p1,”abc”):strcpy(p2,”ABC”);char str[50]=”xyz”;strcpy(str+2,strcat(p1,p2));cout }A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC

以下程序includeincludemain(){char*p1="abc",*p2="ABC",str[50]="xyz", s 以下程序 #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.yzabcABCD.xyabcABC

以下程序includeincludemain(){ char*pl="abc",*p2="ABC",str[50]="xyz";s 以下程序 #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.yzabcABCD.xyabcABC

有以下程序includemain(){ char*p,*q;p=(char *)malloc(sizeof(char)*20);q=p;scanf( 有以下程序 #include<stdlib.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)*20);q=p; scanf(“%s%s”,p,q);printf(“%s%s\n”,p,q); } 若从键盘输入:abc def<回车>,则输出结果是A.def defB.abc defC.abc dD.d d

下面程序的输出结果是 include includevoid main( ) { char p1[10] ,p2 下面程序的输出结果是#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.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC

以下程序includeincludemain(){ char*p1="abc",*p2=-"ABC", str, [50]="xy 以下程序#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.yzabcABCD.xyabcABC

下面程序的输出结果为 ______。includemain(){char pl [7]="abc",p[]2="ABC"str[50]=" 下面程序的输出结果为 ______。 #include<string.h> main() { char pl [7]="abc",p[]2="ABC"str[50]="xyz"; strcpy(str,strcat(p1,p2)); printf("%s"str); }A.xyzabcABCB.abcABCC.xyzabcD.xyzABC

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

下面程序的输出结果是includeincludevoid main( ){char p1[10],p2[10]s 下面程序的输出结果是 #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));A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC

有以下程序# include string.hmain(){char p[20]={′a′, ′b′, ′c′, ′d′}, q[]="abc", r[]="abcde";strcat(p, r); strcpy(p+strlen(q), q);printf("%d\n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7

下面程序的输出结果是()。includeincludevoid main(){char p1[10],p2[10 下面程序的输出结果是( )。 #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.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC

下面程序的输出结果是 ( ) 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

有以下程序: include main( ) { char *p ,* q; p=(char * )malloc(sizeof(char 有以下程序: #include<stdlib.h> main( ) { char *p ,* q; p=(char * )malloc(sizeof(char) * 20);q=p; scanf("%s%s",p,q); printf("%s%s\n",p,q); } 若从键盘输入:abc def<回车>,则输出结果是A.def defB.abc defC.abc dD.d d

下面程序的输出结果是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

以下程序的输出结果是 char cchar(char ch) { if(ch>='A'ch<='Z') ch=ch-'A'+'a'; return ch; } main ( ) { char s [] = "ABC+abc=defDEF" , *p=s; while (*p) { *p=cchar(*p); p++; } printf { "%$\n", s); }A.abc+ABC=DEFdefB.abc+abc=defdefC.abcABCDEFdefD.abcabcdefdef

char*p;p=StrCat(“ABD”,”ABC”);Printf(“%s”,p);的显示结果为()。A-1BABDABCCABD1

单选题有以下程序#include #include main(){ char p[20]= {'a','b','c','d'}, q[]=abc, r[]=abcde; strcat(p,r); strcpy(p+strlen(q),q); printf(%d,strlen(p));}程序运行后的输出结果是(  )。A6B9C11D7

单选题char*p;p=StrCat(“ABD”,”ABC”);Printf(“%s”,p);的显示结果为()。A-1BABDABCCABD1