#include"iostream.h";
#include"string.h"
void swap(int *a,int *b)
{
int t;
t=*a;*a=*b;
*b=t;
}
void main()
{
int x=10;
int y=20;
swap(&x,&y);
cout<<"x="<<x<<endl;
cout<<"y="<<y<<endl;
}
#include"string.h"
void swap(int *a,int *b)
{
int t;
t=*a;*a=*b;
*b=t;
}
void main()
{
int x=10;
int y=20;
swap(&x,&y);
cout<<"x="<<x<<endl;
cout<<"y="<<y<<endl;
}