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