adplus-dvertising
frame-decoration

Question

Which constant member functions does not modify the string?

a.

bool empty()

b.

assign

c.

append

d.

none of the mentioned

Answer: (a).bool empty()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which constant member functions does not modify the string?

Similar Questions

Discover Related MCQs

Q. What is the difference between unsigned int length() and unsigned int size()?

Q. How many parameters can a resize method take?

Q. Where are standard C libraries defined in C++?

Q. Which of the following have their changes in their declaration related to constness of parameter?

Q. How many elements does a floating point number is composed of?

Q. How does the limits.h header file can be represented in C++?

Q. Pick out the correct syntax of the header file that can be used with C++.

Q. How many groups of output of operation are there in c++?

Q. Pick out the correct objects about the instantiation of output stream.

Q. What is meant by ofstream in c++?

Q. How many types of output stream classes are there in c++?

Q. What must be specified when we construct an object of class ostream?

Q. Which operator is used for input stream?

Q. Where does a cin stops it extraction of data?

Q. Which is used to get the input during runtime?

Q. How many parameters are there in getline function?

Q. What can be used to input a string with blankspace?

Q. When will the cin can start proceessing of input?

Q. Which is used for formatting purpose in c++?

Q. How many number of spaces should be set in default tab?