这个程序哪里错了?
#include<stdio.h>void swap(int a,int b)
{
int t;
t=a;
a=b;
b=t;
}
main()
{
int x,y;
printf("input x and y:");
scanf("%d %d",&x,&y);
swap(x,y);
printf("result:x=%d,y=%d\n",x,y);
}
2014-12-26 16:20
2014-12-26 16:21
2014-12-27 11:03
2014-12-27 21:35