#include<stdio.h>
int swap(int *p1, int *p2);
int main() {
int a = 5;
int b = 4;
printf("a = %d b =%d \n", a, b);
swap(&a, &b);
printf("a = %d b =%d \n", a, b);
}
int swap(int *p1, int *p2) {
int m;
m = *p1;
*p1 = *p2;
*p2 = m;
return 0;
}