title: C: 2D-Array doesn't get printed out from the start
body: <p>I am trying to print out the 2D-Array of my program but the output starts halfway (at Packet 18 and it doesn't print out "Packet 18:". But after that it prints out the rest properly to the end. What is going on? Since I have initialized the counter j as 0 I don't see why it would start with 18 and not display the text. What did I do wrong?</p>
  
  <pre><code>int i;
  int j;
  int s[7][50];
  i = 0;
  
  for (j = 0; j &lt; 50; j++)
  {
      printf("Packet %d:\n", j + 1);
      for (i = 0; i &lt; 7; i++)
      {
          printf("Value of line %d: %d", i + 1, s[i][j]);
          printf("\n");
      }
      printf("\n");
  }
  </code></pre>