#includevoid f(int y,int *x){ y=y+*x; *x=*x+y;} void main(){ int x=2,y=4;f(y,&x);printf("%d,%d\n",x,y);}
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 19:48:47
#includevoid f(int y,int *x){ y=y+*x; *x=*x+y;} void main(){ int x=2,y=4;f(y,&x);printf("%d,%d\n",x,y);}
#include
void f(int y,int *x)
{
y=y+*x; *x=*x+y;}
void main()
{
int x=2,y=4;
f(y,&x);
printf("%d,%d\n",x,y);
}
#includevoid f(int y,int *x){ y=y+*x; *x=*x+y;} void main(){ int x=2,y=4;f(y,&x);printf("%d,%d\n",x,y);}
#include
//
printf("%d,%d\n",x,y);
return 0;
}