#include<stdio.h>
#include<conio.h>
void main ()
{
int a , b ;
void swap (int *x, int *y) ;
a = 10;
b = 20;
printf("Value of a before function call : %d\n",a);
printf("Value of a before function call : %d\n",b);
swap ( &a , &b) ;
printf("Value of a after function call : %d\n",a);
printf("Value of b after function call : %d\n",b);
getch () ;
}
void swap ( int *x, int *y )
{
int temp;
temp = *x;
*x = *y;
*y = temp;
printf("Value of a during function : %d\n", *x);
printf("Value of b during function : %d \n",*y);
}