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