Question PRG-CPP-0047
MediumWhat is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "placement";
cout << s.substr(2, 4) << " " << s.find("me") << " " << s.length();
return 0;
}
- A.
ace 5 9
- B.
acem 5 9
- C.
Sign up free to see the answer and a step-by-step explanation.