#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
void Exch(int* x, int* y) {
int tmp;
tmp = *x;
*x = *y;
*y = tmp;
printf("%d, %d", *x, *y);
}
int main(){
int a, b;
scanf("%d%d", &a, &b);
Exch(&a, &b);
system("pause");
return 0;
}
来源:oschina
链接:https://my.oschina.net/u/4251026/blog/3134471