Multiple Choice
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
Correct Answer:
Verified
Related Questions
Q30: The null terminator stands for the ASCII
Q31: The _ function accepts a C-string as
Q32: The _ function concatenates the contents of
Q33: The type of the literal string "Hello"
Q34: After num = stoi("1000"); executes, what value
Q35: A C-string can be assigned to a
Q37: To use the strlen function in a
Q38: A library function that looks for the
Q39: A C-string is a sequence of characters
Q40: A good way to convert a string