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
Q11: Assume that str1 and str2 are objects
Q12: The string class member function returns the
Q13: The function converts a C- string to
Q14: The string class overloads the += operator
Q15: A good way to convert a string
Q17: A good way to convert a value
Q18: An array of characters ending with the
Q19: The strcpy function's arguments are
A)two pointers to
Q20: The function accepts a C- string as
Q21: Assume that str1 and str2 are variables
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