title: Why extern int a ; initialization giving error locally but not globally?
body: <pre><code>extern int a = 10; // it is not giving error
  int main ()
  {
   extern int b = 10; //it is giving error
   return 0;
  }
  </code></pre>
  
  <p><strong>error: ‘b’ has both ‘extern’ and initializer
    extern int b = 10;</strong></p>