Multiple Choice
Consider the following statements: string str1 = "ABCDEFGHIJKLM";
String str2;
After the statement str2 = str1.substr(1,4) ; executes,the value of str2 is "____".
A) ABCD
B) BCDE
C) BCD
D) CDE
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q11: A data type wherein you directly specify
Q15: The string expression strVar._ returns the index
Q16: Suppose that str1 and str2 are string
Q18: The string expression strVar._ deletes n characters
Q21: Suppose that str1,str2,and str3 are string variables.After
Q24: The scope of a namespace member is
Q29: In C++, [] is called the array
Q33: In C++, _ is a reserved word.<br>A)
Q34: Consider the following statements: string str1 =
Q37: A function cannot return the value of