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);}运算方法和结
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/11 17:38:19
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不起作用
找个环境试一下就知道了