void swap (char *x,char *y) { char *t; t=x; x=y; y=t; } void main() { char *s1="abc",*s2="123"; swa
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 01:51:19
voidswap(char*x,char*y){char*t;t=x;x=y;y=t;}voidmain(){char*s1="abc",*s2="123";swavoidswap(char*x,ch
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的值