#include<iostream.h>
#include<conio.h>
void swap(int *a,int *b)
{
int c;
c=*a;
*a=*b;
*b=c;
}
void main()
{
int a,b;
cout<<"Enter Value Of a:";
cin>>a;
cout<<"Enter Value of b:";
cin>>b;
cout<<"Before swapping :”;
cout<<”Value of a is "<<a<<"\n;
cout<<”Value of b is "<<b;
swap(&a,&b);
cout<<" After swapping:”;
cout<<” value of a is"<<a<<"\n”;
cout<<”Value of b is"<<b;
getch();
}