问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容 too few arguments to function
我的解答思路和尝试过的方法
我想要达到的结果
#include<stdio.h>
int temp;
int swap1(int *a,int*b)
{
temp=*a;
*a=*b;
*b=temp;
printf("%d%d",a,b);
}
int main(int x,int y)
{
printf("Please input two numbers:");
scanf("%d%d",&x,&y);
swap1();
printf("%d%d",x,y);
}