Q44
What will be the output of the following C++ code? #include #include using namespace std; int main () string str="Steve Jobs founded the apple"; string str2 = str.substr (6, 4); unsigned pos = str.find("the"); string str3 = str.substr (pos); cout << str2 << ' ' << str3 << ' '; return 0;
A.
Jobs the apple
AnswerB.
the apple
C.
Steve
D.
Jobs
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board