Ask Question
15 June, 16:00

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

a. True

b. False

+2
Answers (1)
  1. 15 June, 16:23
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers