title: For loop performance on multiple variables - C#
body: <p>We all know that we can declare multiple variables in a for loop like the one below</p>
  
  <pre><code>for ( int var1 = 0, var2 = 0, var3 = 0, var4 = 0, var5 = 0, var6 = 0; var1 &lt; 10;
        var1++, var2++, var3++, var4++, var5++, var6++ )
  {
        int result = var1 + var2 + var3 + var4 + var5 + var6;
        Console.WriteLine( result );
  }
  Console.Read();
  </code></pre>
  
  <p>My Question is,</p>
  
  <ol>
  <li>Can you let me know the total number of variables you can initialize in a for-loop?</li>
  <li><strong>Do multiple variables affect the performance of for-loop?</strong></li>
  <li>How many variable do you suggest we can use in a for-loop?</li>
  </ol>
  
  <p>Thanks.  </p>