C++ pointer array initialization help
<p>I had trouble with initializing arrays of pointers. What I found out compiling with gcc c++ (4.6.0) is:</p>

<pre><code>MyClass** a = new MyClass*[100];
</code></pre>

<p>Does not always initalize the array of pointers. (most of the time it did give me an array of null pointers which confused me)</p>

<pre><code>MyClass** a = new MyClass*[100]();
</code></pre>

<p>DOES initialize all the pointers in the array to 0 (null pointer).</p>

<p>The code I'm writing is meant to be be portable across Windows/Linux/Mac/BSD platforms. Is this a special feature of the gcc c++ compiler? or is it standard C++?  Where in the standard does it says so?</p>
