a) empty()
b) isempty()
c) haveElements()
d) none()
1 thought on “ Which function is used to check whether the vector is empty or not?”
Leave a Comment
You must be logged in to post a comment.
a) empty()
b) isempty()
c) haveElements()
d) none()
You must be logged in to post a comment.
a
Explanation: empty() function is provided by the vector container to check whether it is empty or not.