To access the last character of a string class object str you can use the expression
A) str[last].
B) str.last() .
C) str[str.length() ].
D) str[str.length() -1].
E) None of the above
Correct Answer:
Verified
Q22: The type of the literal string "Hello"
Q23: To account for the null terminator stored
Q24: The >> operator can be used to
Q25: The _ function concatenates the contents of
Q26: If str is a string class object,
Q28: There exist C++ stream classes that write
Q29: A C-string can be assigned to a
Q30: To declare an array that will store
Q31: After num = stoi("1000"); executes, what value
Q32: A good way to convert a string
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