Question PRG-CPP-0033
EasyWhat is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "hello";
cout << s.substr(1, 3);
return 0;
}
- A.
ello
- B.
hel
- C.
el
- D.
ell
Sign up free to see the answer and a step-by-step explanation.