The expression str1 < str 2 is True when
A) the string object str1 precedes the string str 2 in alphabetic order.
B) the string str1 converted to numeric form is less than the string str2 converted to numeric form.
C) the length of the string str1 is less than the length of the string str2.
D) the C-string "str1" precedes the C-string "str2" in alphabetic order.
E) None of the above
Correct Answer:
Verified
Q14: Although C++ provides ample library functions to
Q30: To declare an array that will store
Q31: After num = stoi("1000"); executes, what value
Q32: A good way to convert a string
Q33: The _ library function reverses the order
Q34: To use the ostringstream class, you must
Q35: A C-string is a sequence of characters
Q36: The code int x = 0; while
Q37: The proper expression to compare the first
Q40: The following statement declares a string object
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