title: Are variables inside a loop (while or for) disposed after the loop has completed?
body: <p>Are variables that are created inside a while or for loop disposed/deleted from memory after the loop is done executing? also, is it a bad coding habit to create temporary variables inside a loop?</p>
  
  <p>in this example, does it create 100 X variables and then dispose of them, or are they disposed on each iteration? thanks.
  example:</p>
  
  <pre class="lang-c prettyprint-override"><code>int cc =0;
  while(cc &lt; 100){
      int X = 99; // &lt;-- this variable
      cc++;    
  }
  </code></pre>