Ask Question
16 May, 08:23

The expressionvecCont. empty () empties the vector container of allelements.

a. True

b. False

+2
Answers (1)
  1. 16 May, 11:54
    0
    False

    Explanation:

    vector is like a dynamic array that has a special ability to resize automatically when it required.

    vector has several functions:

    like, insert () to insert the element in the vector.

    delete () for delete the one element at a time.

    empty () is also the function used in the vector. It is used for checking the vector is empty or not.

    it gives the Boolean value (TRUE or FALSE), if the vector is empty it gives the output TRUE if the vector is not empty it gives the output FALSE.

    It is not used for empty or deletes all elements of the vector.

    Therefore, the answer is False.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “The expressionvecCont. empty () empties the vector container of allelements. a. True b. False ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers