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.


B) the same value as the member function str.size().

Computer Science & Information Technology

You might also like to view...

Write a code fragment that displays a message telling the user what type of data to enter, copies into the variables num1 and num2 the values entered by the user, and then echoes the values to the screen.

Given the following environment: ``` #include using namespace std; int main() { int num1; double num2; ... ```

Computer Science & Information Technology

Suppose we are given an STL vector container named vec that holds values of type double. What do each of vec[vec.size()-1], vec.back(), *(vec.end()-1), *(vec.begin()+vec.size()-1)and *vec.rbegin() mean?

What will be an ideal response?

Computer Science & Information Technology

What is the motivation behind caching?

What will be an ideal response?

Computer Science & Information Technology

A vertical axis title can be displayed parallel to the axis

Indicate whether the statement is true or false

Computer Science & Information Technology