What is the output of the following code?
#include <iostream>
using namespace std;
int main()
{
string str = "Hello";
cout << str.substr(2, 5);
return 0;
}
Syntax error
ello
llo
None
This question is part of this quiz :
String Data Structure Quiz for Beginners