Answers

2014-05-16T15:16:13+05:30
Int main()
{
int a,b,temp;
cout<<"enter 1st value";
cin>>a;
cout<<"enter 2nd value";
cin>>b;

temp=a;//value of a stored into temp variable
a=b;//value of b is stored into a,now if b=1,then both a and b contain 1;
b=temp;//value of temp(or a) is send into b

cout<<"swaped values are:-/n"<<a<<b;
cout<<"/nthank you";
getchar();
}


0