title: The For Loop Initialization
body: <p>So I was wondering whether I could declare a variable in the declaration of a for loop. Would this code be valid?</p>
  
  <pre><code>for (int a = 0;a &lt; len + 1;a++);
  </code></pre>
  
  <p>In what scope would <code>a</code> exist in? Would it be invalid outside the for loop, or would I still be able to access it?</p>
  
  <p>Also, is it possible for me to declare or initialize 2 variables in a single for loop statement?</p>
  
  <pre><code>for (int a = 0, b = len + 1;a &lt; b;a++);
  </code></pre>
  
  <p>Is this a valid statement?</p>