首页 > 应用开发 > > 为甚么不能输出,a,b交换的值
#include
int fun(int a,int b)
{
int temp;
temp=a;
a=b;
b=temp;
return a,b;
}
void main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d,%d",a,b);
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2005/viewspace-3136032/ ,如需转载,请注明出处,否则将追究法律责任。