title: Use of comma in for statement?
body: <p>I gave an answer to <a href="https://stackoverflow.com/questions/59648189/how-to-append-characters-to-a-string-array-in-c/59648240#59648240">How to append characters to a string array in C</a> but seem to have a problem in understanding the use of the comma in the initializer part of the <code>for</code> statement:</p>
  
  <pre><code>int i, j, k;
  for (i=0, j=0, k=0;
  </code></pre>
  
  <p>In this <code>for</code> statement the comma is a sequential operator that performs three initializations.</p>
  
  <pre><code>int j, k;
  for (int i=0, j=0, k=0;
  </code></pre>
  
  <p>In this <code>for</code> statement I got the comment <em>"The <code>j</code> and <code>k</code> outside the loop will be shadowed by the <code>j</code> and <code>k</code> inside the loop."</em></p>
  
  <p>So in the first example the comma is a sequential operator and in the second example the comma is a separator in in a declarator list?</p>