CPP MCQ
What is the use of reset() function?
A)
Used to empty any container value
B)
Used to check the type of any variable
C)
Used to destroys the contained object in any variable
D)
Used to change the object any container is holding

Correct Answer : Option (C) :   Used to destroys the contained object in any variable

Explanation : reset() function is provided with any to destroy an object contained in any variable in case it is not needed.