title: Redeclaring of an array in loop in C
body: <p>Doesn't the array when declared in a loop sets to zero when the loop repeats?</p>
  
  <p>I have an array and working with it this way..</p>
  
  <pre><code>while(i&lt;n)
  {
      int a[1000];
      //taking inputs in array..
      /*some calculations with array..
      the values in array may change*/
  }
  </code></pre>
  
  <p>The next time when the loop repeats, array a is declared again, it is a new array, so aren't values in array zero now?</p>
  
  <p>Actually I have a made a code this way and observed that the values are not zero but instead are same as they were just before the loop repeats. Why?</p>