title: Unhandled expression arrays C++
body: <p>I'm trying to learn C++ and when I came to arrays it came up with this when trying to run this code: </p>
  
  <p><code>Unhandled exception at 0x00c3151f in array.exe: 0xC0000005: Access violation writing location 0x00390018</code></p>
  
  <p>this is the my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      int x;
      int y;
      int array[8][8]; //Declares an array like a chessboard
  
      for ( x = 0; x &lt; 8; x++ ) {
          for ( y = 0; y &lt; 8; x++ )
              array[x][y] = x * y; // Set each element to a value
      }
      cout&lt;&lt;"Array Indices:\n";
      for ( x = 0; x &lt; 8; x++ ) {
          for ( y = 0; y &lt; 8; x++ )
              cout&lt;&lt;"["&lt;&lt;x&lt;&lt;"]["&lt;&lt;y&lt;&lt;"]="&lt;&lt; array[x][y] &lt;&lt;" ";
          cout&lt;&lt;"\n";
      }
      cin.get();
  }
  </code></pre>