Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.5K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
Difference Between
3.6K+ articles
C Language
1.8K+ articles
C/C++ Puzzles
187+ articles
cpp-class
57+ articles
cpp-puzzle
32+ articles
cpp-namespaces
6 posts
Recent Articles
Popular Articles
How to Resolve a Name Conflict in C++?
Last Updated: 11 March 2024
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
cpp-namespaces
C++
C++ Programs
Picked
C++ Errors
CPP Examples
Difference between namespace and class
Last Updated: 09 November 2022
Classes are data types. They are an expanded concept of structures, they can contain data members, but they can also contain functions as members whereas a namespace is si...
read more
cpp-namespaces
cpp-class
C++
Difference Between
C/C++ Puzzles
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
cpp-namespaces
cpp-puzzle
C++
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
cpp-namespaces
C++
C++ Inline Namespaces and Usage of the "using" Directive Inside Namespaces
Last Updated: 09 March 2023
Prerequisite: Namespaces in C++In C++, namespaces can be nested, and the resolution of namespace variables is hierarchical. An inline namespace is a namespace that uses th...
read more
cpp-namespaces
C++
Namespace in C++
Last Updated: 15 May 2025
Name conflicts in C++ happen when different parts of a program use the same name for variables, functions, or classes, causing confusion for the compiler. To avoid this, C...
read more
cpp-namespaces
C Language
C++
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !