Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.5K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
Difference Between
3.1K+ articles
C/C++ Puzzles
69+ articles
cpp-class
58+ articles
cpp-puzzle
32+ articles
cpp-namespaces
6 posts
Recent Articles
How to Resolve a Name Conflict in C++?
Last Updated: 23 July 2025
In C++, naming conflict occurs when two identifiers in the same scope have the same name and the compiler cannot infer which identifier to refer to when it is mentioned in...
read more
C++ Programs
C++
Picked
cpp-namespaces
C++ Errors
CPP Examples
Difference between namespace and class
Last Updated: 11 July 2026
A namespace and a class are both used to organize C++ programs, but they serve different purposes. A namespace groups related identifiers to avoid naming conflicts, wherea...
read more
C/C++ Puzzles
Difference Between
C++
cpp-namespaces
cpp-class
Why "using namespace std" is considered bad practice
Last Updated: 29 March 2024
The statement using namespace std is generally considered bad practice. The alternative to this statement is to specify the namespace to which the identifier belongs using...
read more
Misc
C++
cpp-namespaces
cpp-puzzle
Cons of using the whole namespace in C++
Last Updated: 15 June 2017
A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used to organise cod...
read more
C++
cpp-namespaces
C++ Inline Namespaces and Usage of the "using" Directive Inside Namespaces
Last Updated: 11 July 2026
An inline namespace is a nested namespace whose members can be accessed as if they belonged to the enclosing namespace. It is commonly used for library versioning and redu...
read more
C++
cpp-namespaces
Namespace in C++
Last Updated: 11 July 2026
A namespace in C++ is a container used to organize identifiers like variables, functions, and classes. It helps prevent naming conflicts when the same names are used in di...
read more
C++
cpp-namespaces