Consider the following statement:
string str = "Now is the time for the party!";
What is the output of the following statements? (Assume that all parts are independent of each other.)
a. cout << str.size() << endl;
b. cout << str.substr(7, 8) << endl;
c. string::size_type ind = str.find('f');
string s = str.substr(ind + 4, 9);
cout << s << endl;
d. cout << str.insert(11, "best ") << endl;
e. str.erase(16, 14);
str.insert(16, "to study for the exam?");
cout << str << endl;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.