πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) To avoid name conflicts

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

Explanation by: Rakesh Kumar
Namespaces are used in C++ to organize code and avoid name conflicts.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
93%
Success Rate