A

Admin • 833K Points
Coach

Q. What is the purpose of the 'namespace' in C++?

  • (A) To define a class
  • (B) To avoid name conflicts
  • (C) To store variables globally
  • (D) To allocate memory
  • Correct Answer - Option(B)
  • Views: 19
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

Namespaces are used in C++ to organize code and avoid name conflicts.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.