The following piece of code
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
string a="abc", b="xyz";
a,b = a+b, b+a;
cout<<a<<" "<<b<<endl;
return 0;
}
outputs
abc abcxyz
Why is it so? Expected or desired output is
abcxyz xyzabc
How to get this?