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
Keneth
10 months agoVenita
9 months agoWhitley
9 months agoMilly
9 months agoBettina
9 months agoJaclyn
9 months agoRoosevelt
9 months agoHyun
10 months agoRonald
10 months agoSelene
10 months agoJacquline
10 months agoMicaela
10 months agoMartina
9 months agoYuette
10 months agoYuette
10 months agoPeggie
10 months agoBilly
10 months agoKarrie
10 months ago