What is the output of the program?
#include
using namespace std;
int main()
{
string s1[]= {"H" , "t" };
string s;
for (int i=0; i<2; i++) {
s = s1[i];
s.insert(1,"ow");
cout << s;
}
return( 0 );
It prints: How
It prints: Ht
It prints: Hoto
It prints: Howtow
Submit