Consider the following statements: string str1 = "Gone with the wind";
String str2;
After the statement str2 = str1.substr(5,4) ; executes, the value of str2 is "____".
A) Gone
B) with
C) the
D) wind
Correct Answer:
Verified
Q24: The _ function is used to interchange
Q25: The values in the domain of an
Q28: If a global identifier in a program
Q29: The data type string has a named
Q30: Given the following code which of the
Q31: Suppose that str1, str2, and str3 are
Q34: Suppose str = "xyzw";.After the statement str[2]
Q35: In ANSI/ISO Standard C++, the _ mechanism
Q38: The string expression strVar._ starts at index
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