title: What is the difference between "File scope" and "program scope"
body: <p>A variable declared globally is said to having program scope<br>
   A variable declared globally with static keyword is said to have file scope.  </p>
  
  <p>For example:</p>
  
  <pre><code>int x = 0;             // **program scope**   
  static int y = 0;      // **file scope**  
  static float z = 0.0;  // **file scope** 
  
  int main()  
  {  
     int i;   /* block scope */  
     /* .
        .
        .
     */ 
     return 0;  
  }  
  </code></pre>
  
  <p>What is the difference between these two?</p>