158k views
5 votes
The expression vecCont.empty() empties the vector container of all elements.

True

False

User Cedias
by
4.8k points

1 Answer

4 votes

Answer:

False

Step-by-step explanation:

Vector is a similar to dynamic array which has the ability to resize itself automatically.

empty() is a function used in the vector.

It is used to check the vector is empty or not.

it does not delete the element in vector, it just check the vector is empty or not, if vector empty it gives a Boolean value True other wise False.

Therefore, the answer is False.

User Robert Seifert
by
5.3k points