Question: string str 1 , str 2 ; str 1 = The _ third _ Quliz _ in _ CPE 2 1 1 ; str

string str1, str2;
str1= "The_third_Quliz_in_CPE211";
str2= str1.substr(4,8);
cout str2;
What is the string value output by the output statement?
d_Qu
third_Qu
_third_Q
rd_Q
string str 1 , str 2 ; str 1 = "The _ third _

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!