Q235
What will be the output of the following C++ code? #include #include using namespace std; int main () string str ("helloworld."); cout << str.substr(3).substr(4) << endl; return 0;
A.
world.
B.
rld.
AnswerC.
elloworld.
D.
hello
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board