Close
Close

What is the use of namespacae in c++

   @shaurya


Answers

  •   

    From the course C++:

    Basically, a namespace is a special area inside which something is defined. So, in this case, cout is defined in stdnamespace. Thus, std::cout states that cout is defined in the std namespace or to use the definition of cout which is defined in std namespace.



  •   

    Basically its like a toolbox which will equip you with tools to use.

    As we can use tools like cout, cin to print outputs and provide inputs respectively after typing std::cout or std::cin.



Ask Yours
Post Yours
Write your answer