void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swavoid swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123";swap(s1,s2);printf ("%s,%s\n",s1,s2);}运算方法和结
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/28 15:01:03
void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swavoid swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123";swap(s1,s2);printf ("%s,%s\n",s1,s2);}运算方法和结
void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swa
void swap (char *x,char *y)
{
char *t; t=x; x=y; y=t;
}
void main()
{
char *s1="abc",*s2="123";
swap(s1,s2);
printf ("%s,%s\n",s1,s2);
}
运算方法和结果,
void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swavoid swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123";swap(s1,s2);printf ("%s,%s\n",s1,s2);}运算方法和结
感觉是 abc123
应该是swap不起作用
找个环境试一下就知道了