If str is a string class object, the member function str.length() returns
A) the number of characters that make up the str string object.
B) the same value as the member function str.size() .
C) the number of integer variables that make up the str object.
D) Both A and B are correct.
E) Both A and C are correct.
Correct Answer:
Verified
Q21: To use the strlen function in a
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
Q27: To access the last character of a
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
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