What happens when you attempt to compile and run the following code?
#include
using namespace std;
int main()
{
string s1[]= {"How" , "to" };
s1[0].swap(s1[1]);
for (int i=0; i<2; i++) {
cout << s1[i];
}
return( 0 );
Limited Time Offer
25%
Off
Willetta
10 days agoFabiola
4 days agoAbel
16 days agoDeandrea
23 days agoBlair
10 days agoJacqueline
13 days agoKris
24 days agoMagda
25 days agoFrank
4 days agoDeandrea
6 days agoTijuana
11 days agoDahlia
14 days agoFernanda
26 days agoBrice
2 months agoLong
2 months ago