#include
void swap_by_add(int &x,int &y);
void main()
{
int a,b;
clrscr();
cout<<"Enter the value of a & b: "; cin>>a>>b;
cout<<"\n\t\t\tBefore calling"<
cout<<"\n\t\t\tAfter calling"<
}
void swap_by_add(int &x,int &y)
{
int temp;
temp=x;
x=y;
y=temp;
}
No comments:
Post a Comment