Nested UnNamed or Anonymous Namespaces
This video tutorial explains about the nested un-named namespaces or the anonymous namespaces in c++ programming.
You are gonna learn what are nested anonymous or unnamed namespaces, how to define a nested unnamed namespace, how to access the members of a nested unnamed namespace in detail with example.
source code for this tutorial
#include <iostream> using namespace std; namespace{ int x; namespace one{ int x= 250; void display(){ cout << x << endl; } } } int main() { x = 100; cout << x <<endl; one :: display(); return 0; }