Google News
logo
CPP - Quiz(MCQ)
What is the use of C++ type() function in any container?
A)
Used to check whether a container is empty or not
B)
Used to destroys the contained object in any variable
C)
Used to change the object any container is holding
D)
Used to return the type information about the any container

Correct Answer :   Used to return the type information about the any container


Explanation : type() function is used to check the type of data/value the container object is holding.

Advertisement