#include<stdio.h>
#include<conio.h>
void main ()
{
int a , b ;
void swap (int a, int b);
a = 10;
b = 20;
printf("Value of a before function call : %d\n ",a);
printf("Value of a b before function call : %d\n",b);
swap (a , b) ;
printf("Value of a after function call : %d \n",a);
printf("Value of a 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);
}