Vidyalelo
C++ Programming · Q235

Classes and Objects in C++

Programming · C++ Programming · question 235

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.
Answer
C.
elloworld.
D.
hello

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board