title: can static declared global variable can be accessed with extern in another file?
body: <p>I have one doubt if i declared global variable with static.</p>
  
  <h2>file1.c</h2>
  
  <pre><code>static int a=5;
  
  main()
  {
     func();
  }
  </code></pre>
  
  <p>can it be access in another file2.c using extern ?</p>
  
  <h2>file2.c</h2>
  
  <pre><code>func()
  {
     extern int a;
     printf(a);
  }
  </code></pre>
  
  <p>or only global variable declared without static can be access using extern?</p>