title: For loop confusion in C
body: <p>This is a question from a practice test that I do not fully understand.</p>
  
  <p>For the code fragment</p>
  
  <pre><code>int i = 0, j = 0, k = 0;
  for (i=-1; i&lt;=10; ++i){ 
      j = i; ++k; 
  }
  </code></pre>
  
  <p>I am asked to find the values of the variables after executing the code.</p>
  
  <p>The answers are:</p>
  
  <pre><code> i = 11 j = 10 k = 12
  </code></pre>
  
  <p>I don't understand how, can someone please help? </p>