C++ program to illustrate the use of Nested Namespace

#include <iostream>
using namespace std;
namespace out
{
  namespace in
  {
    void display()
    {
     
cout<<"I am showing from nested namespace.";
    }
  }
}

int main()
{
  out::in::display();
  return 0;
}

No comments:

Post a Comment