#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void swap(int* x,int* y)
{
int swap = *x;
*x = *y;
*y = swap;
}
int main()
{
int a = 12;
int b = 36;
swap(&a, &b);
printf("a=%d,b=%d\n", a, b);
system("pause");
return 0;
}