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
3 months agoLynelle
2 months agoFabiola
3 months agoAbel
3 months agoDeandrea
3 months agoAlfreda
2 months agoBlair
3 months agoJacqueline
3 months agoKris
3 months agoMagda
3 months agoFrank
3 months agoDeandrea
3 months agoTijuana
3 months agoDahlia
3 months agoFernanda
3 months agoBrice
4 months agoLong
4 months ago