#include <stdio.h>
void swap(int *a, int *b)
{
int temp = *a;
*a = *b;
*b = temp;
}
int main()
{
int x = 10;
int y = 20;
printf("Before calling the function: x = %d, y = %d\n", x,
y);
swap(&x, &y);
printf("After calling the function: x = %d, y = %d\n", x,
y);
return 0;
}