Create array of pointers in C++ : <p>I'm new comer to C++, so I'm very confused about the code below:</p>

<pre><code>const char* headers[]= {"apple","pear","tree"};
</code></pre>

<p>So is this line supposed to create "an array of pointers to char"? (Maybe i'm wrong). If so, why such array of pointers being assigned to an array of strings? </p>

<p>Also I'm confused why bother to have such <strong>pointer</strong> array? Can't we simply do sth like: <code>int array [5] = { 1, 2, 3, 4, 5 };</code> </p>

<p>All such pointer/reference stuff in C++ are so confusing and difficult for people like me from Java world.</p>

<p>Many thanks!</p>
