title: Does row and column of 2D arrays start at 0?
body: <p>Does <code>int myarray[7][7]</code> not create a box with 8x8 locations of 0-7 rows and columns in C++?</p>
  
  <p>When I run: </p>
  
  <pre><code>int board[7][7] = {0};
  
  for (int i = 0; i &lt; 8; i++)
  {
      for (int j = 0; j &lt; 8; j++) 
      {       
          cout &lt;&lt; board[i][j] &lt;&lt; " ";
      }
      cout &lt;&lt; endl;
  }   
  </code></pre>
  
  <p>I get output:</p>
  
  <pre><code>0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 146858616 1 0 0 146858832 1 1978920048 
  </code></pre>
  
  <p>So the 8 columns seem to work, but not the 8 rows. 
  If I change it to <code>int board[8][7]  = {0};</code> it works on mac CodeRunner IDE, but on linux Codeblocks I get:</p>
  
  <pre><code>0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 0 0 0 0 0 0 0 
  0 1 0 0 0 0 0 1503452472
  </code></pre>
  
  <p>Not sure what's going on here.</p>