title: What should i do to access variable 'a'?
body: <pre><code>#include&lt;iostream&gt;
  int a;    //1st a
  void f()
  {
     int a;    //2nd a
  
     {
          int a;   //3rd a
   // ::a refers to the global a here
   // simply a refers to the a inside this namespace
  
  
  //What should i do to access and modify 2nd a here in this namespace
  
     }
  
  }
  </code></pre>
  
  <p>I am aware that to access global names i need to use ::a but what should i do if the name i want to access is inside a function and i am inside the namespace defined by that function? </p>