关于函数参数的请教!!1
#include “stdio.h”swap(int x,int y)
{int t;
t=x;
x=y;
y=t;
}
void main()
{int a=4,b=9;
swap(a,b);
printf("%d%d",a,b);
}
输出结果 是4 9
请问高手为什么没有交换,为什么输出的不是9 4呢?
2008-07-26 14:58
2008-07-26 15:09
2008-07-26 15:35
2008-07-26 20:33
2008-07-27 11:58
2008-07-28 09:43
2008-08-02 19:42
2008-08-02 20:02