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