title: Reallocating memory of a C++ array.
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3482941/how-do-you-realloc-in-c">How do you <code>realloc</code> in C++?</a>  </p>
  </blockquote>
  
  
  
  <p>I know that C++ arrays can be reallocated (expanded) using <code>realloc()</code> if memory has been allocated via <code>malloc()</code> or <code>calloc()</code>. My question is, how can I expand an array in C++ whose memory has been allocated via the <code>new</code> operator? </p>