#include<conio.h>
#include<stdio.h>
void swap(int*,int*);
void main()
{
int a=10,b=20;
clrscr();
swap(&a,&b);
printf("\n a=%d and b=%d",a,b);
getch();
}

void swap(int *a,int *b)
{
int t;
t=*a;*a=*b;*b=t;
}
