nested anonymous namespace

Solutions on MaxInterview for nested anonymous namespace by the best coders in the world

showing results for - "nested anonymous namespace"
Tim
03 Jan 2018
1#include <iostream>
2
3using namespace std;
4
5namespace{
6int x;
7namespace one{
8    int x= 250;
9void display(){
10cout << x << endl;
11}
12}
13
14}
15
16int main()
17{
18 x = 100;
19 cout << x <<endl;
20 one :: display();
21    return 0;
22}
23
24