Issue with pointer to character array C++
<p>I have what I thought should be a very simple snippet of code to write, though I'm unable to compile for a reason which I do not understand.</p>

<p>The following simplified code will not compile:
</p>

<pre><code>char buffer[9] = "12345678";
char* pBuffer = &amp;buffer;
</code></pre>

<p>Compiler (g++) throws the following error:</p>

<p><code>error: cannot convert 'char (*)[9]' to 'char*' in initialization</code></p>

<p>C++ isn't exactly my "native" language, but everywhere I've looked tells me this should work. Any ideas or advice is greatly appreciated.</p>
