#include<stdio.h>
#include<stdlib.h>
void exc(int* x, int* y) {
int tmp = 0;
tmp = *x;
*x = *y;
*y = tmp;
}
int main()
{
int a = 10;
int b = 20;
exc(&a,&b);
printf("%d %d", a, b);
system("pause");
return 0;
}
20 10请按任意键继续. . .