Copying/reading value out of const multi dimensional array
<p>I'm having a problem regarding const multi dimensional arrays.</p>

<p>This is my code:</p>

<pre><code>const int a[3] = { 1,2,3 };
const int b[3] = { 4,5,6 };
const int c[3] = { 7,8,9 };
const int* arr[3][3] = { a, b, c };
cout &lt;&lt; *arr[0][0] &lt;&lt; endl;
cout &lt;&lt; *arr[0][1] &lt;&lt; endl;
cout &lt;&lt; *arr[0][2] &lt;&lt; endl;
cout &lt;&lt; *arr[1][0] &lt;&lt; endl; // error
</code></pre>

<p>The last line gives me this error:</p>

<blockquote>
  <p>Exception thrown at 0x00007FF77B8839C6 in BitboardChess.exe:
  0xC0000005: Access violation reading location 0x0000000000000000.</p>
  
  <p>If there is a handler for this exception, the program may be safely
  continued.</p>
</blockquote>

<p>What am I doing wrong? Please help!</p>