#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
void Swap(int* pa, int* pb)
{int temp = 0;temp = *pb;*pb = *pa;*pa = temp;
}int main()
{int a = 20;int b = 30;printf("交换前a=%d b=%d\n", a, b);Swap(&a,&b);printf("交换后a=%d b=%d\n", a, b);return 0;
}