void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swa
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/01 16:55:58
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"; swa
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; }
x和y,是地址,*x和*y才是char的值,要交换的是char的值