Ask Question
15 October, 22:51

Class string belongs to which namespace?

A.

std

B.

C.

D.

All of the above

+3
Answers (1)
  1. 16 October, 01:51
    0
    A. std

    Explanation:

    Class string belongs to std namespace. Its complete representation is std::string. Besides string, std namespace also contains other standardized objects such as cout, cin, vector etc. If we use the declaration

    using namespace std in our C+ + program, then we can use string datatype directly without having to prefix it with std:: in the rest of the code. This aids in readability.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Class string belongs to which namespace? A. std B. C. D. All of the above ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers