ITPub博客

首页 > 应用开发 > > 为甚么不能输出,a,b交换的值

为甚么不能输出,a,b交换的值

作者:cylong 时间:2019-10-25 15:31:54 0 删除 编辑

#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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: equals的问题
请登录后发表评论 登录
全部评论

注册时间:2019-04-16

  • 博文量
    106
  • 访问量
    1360