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