Pointer to a pointer
<p>I'm trying to set the memory of pointer <code>p</code> through pointer to pointer <code>x</code></p>

<pre><code>int *p = 0;
int **x = &amp;p;

*x = new int[2];

*x[0] = 1;  //p[0] = 1
*x[1] = 2;  //p[1] = 2
</code></pre>

<p>why does it fails with access violation error?</p>
