title: How do I declare several variables in a for (;;) loop in C?
body: <p>I thought one could declare several variables in a <code>for</code> loop:</p>
  <pre><code>for (int i = 0, char* ptr = bam; i &lt; 10; i++) { ... }
  </code></pre>
  <p>But I just found out that this is not possible. GCC gives the following error:</p>
  <blockquote>
  <p>error: expected unqualified-id before 'char'</p>
  </blockquote>
  <p>Is it really true that you can't declare variables of different types in a <code>for</code> loop?</p>