Ask Question
20 March, 08:48

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

a. True

b. False

+3
Answers (1)
  1. 20 March, 11:21
    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?
Find an answer to your question ✅ “The expressionvecCont. empty () empties the vector container of allelements. a. True b. False ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers