#include main() { char *p1,*p2; p1=(char*)calloc (20,sizeof(char)); p2=p1#include main(){ char *p1,*p2;p1=(char*)calloc (20,sizeof(char));p2=p1;scanf ("%s%s",p1,p2);printf("%s%s\n",p1,p2);}

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 22:52:19
#includemain(){char*p1,*p2;p1=(char*)calloc(20,sizeof(char));p2=p1#includemain(){char*p1,*p2;p1=(cha

#include main() { char *p1,*p2; p1=(char*)calloc (20,sizeof(char)); p2=p1#include main(){ char *p1,*p2;p1=(char*)calloc (20,sizeof(char));p2=p1;scanf ("%s%s",p1,p2);printf("%s%s\n",p1,p2);}
#include main() { char *p1,*p2; p1=(char*)calloc (20,sizeof(char)); p2=p1
#include
main()
{ char *p1,*p2;
p1=(char*)calloc (20,sizeof(char));
p2=p1;
scanf ("%s%s",p1,p2);
printf("%s%s\n",p1,p2);}

#include main() { char *p1,*p2; p1=(char*)calloc (20,sizeof(char)); p2=p1#include main(){ char *p1,*p2;p1=(char*)calloc (20,sizeof(char));p2=p1;scanf ("%s%s",p1,p2);printf("%s%s\n",p1,p2);}
输出的结果是输入的p2字符串的值
因为p1和p2指向了同一个内存区域啊.