
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
Q8: The scope of a namespace member is
Q26: Suppose str = "ABCDEFGHI".The output of the
Q27: Suppose that str1 and str2 are string
Q28: If a global identifier in a program
Q29: Consider the following statements: string str =
Q31: Suppose that str1,str2,and str3 are string variables.After
Q32: A data type wherein you directly specify
Q33: Which of the following statements is used
Q34: Given the following code namespace globalType
{
Void printResult();
}
Which
Q40: Before using the data type string, the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents