Quote Originally Posted by vickytambule View Post
string for example : "qwerty"
Code:
#include <string>
#include <iostream>

using namespace std;

int main()
{
   string s1 = "abc";
   string s2 = "123";
   cout << s1 << " " << s2 << "\n";
   swap(s1, s2);
   cout << s1 << " " << s2 << "\n";
}
Run that example. Is this what you're asking?

Regards,

Paul McKenzie