SWAPING OF TWO NUMBERS IN CPP PROGRAM
#include <iostream>
using namespace std;
int main()
{
string a= "lakshman";
string b = "malviya";
string c;
c=a;
a=b;
b=c;
cout<<"swaping strings :"<<endl;
cout<<"first is "<<a<<endl;
cout<<"second is "<<b<<endl;
return 0;
}
Comments
Post a Comment