#include<iostream>
#include <string>
void swap (std::string &x,std::string &y)
{
std::string temp = x;
x = y;
y = temp;
}
int main()
{
std::string x = "geeksquiz";
std::string y = "geeksforgeeks";
swap(x, y); //pass arguments by reference
std::cout<<x << " "<<y;
}