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
Q3: To declare a C- string, you should
Q4: The function accepts a C- string as
Q5: To declare an array that will store
Q6: A good way to convert a string
Q7: The function concatenates the contents of one
Q8: The string class member function returns the
Q9: The library function reverses the order of
Q10: The proper expression to compare the first
Q11: A C- string can be assigned to
Q33: Although C++ provides ample library functions to