#include< stdio.h >
#include< conio.h >
void exchange(int *,int *);
void main()
{
int a,b;
clrscr();
printf("Enter vale of a & b:");
scanf("%d %d",&a,&b);
exchange(&a,&b);
printf("a=%d",a);
printf("b=%d",b);
getch();
}
void exchange(int *p,int *q)
{
int *k;
*k=*p;
*p=*q;
*q=*k;
}