If string s1 is lexicographically greater than string s2, then the value returned by s2.compare(0, s2.size() , s1) must be?
A) 0
B) -1
C) A negative number.
D) A positive number.
Correct Answer:
Verified
Q8: The arguments passed to replace do not
Q9: Given the strings defined below, which statement
Q10: The function call string1.erase(5) will:
A) Return a
Q11: Strings:
A) Can use the subscript operator to
Q12: If string s1 has the value "computer"
Q14: Which of the following is false?
A) If
Q15: Which of the following returns a bool?
A)
Q16: If string s contains "antidisestablishmentarianism", then s.substr(7,
Q17: Class string has member function _ to
Q18: The total number of elements that can
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