title: Is there a way to expand a dynamic memory array in C++?
body: <p>Is there a way to expand a dynamic memory array? like this:</p>
  
  <pre><code>int *a = new int[5];
  *a = new int[2];
  </code></pre>
  
  <p>Is this legal?</p>