title: delete[] an array of objects
body: <p>I have allocated and array of Objects</p>
  
  <pre><code>Objects *array = new Objects[N];
  </code></pre>
  
  <p>How should I delete this array?
  Just </p>
  
  <pre><code>delete[] array;
  </code></pre>
  
  <p>or with iterating over the array's elements?</p>
  
  <pre><code>for(int i=0;i&lt;N;i++)
      delete array[i];
  delete[];
  </code></pre>
  
  <p>Thanks</p>
  
  <p>UPDATE:</p>
  
  <p>I changed loop body as </p>
  
  <pre><code>delete &amp;array[i];
  </code></pre>
  
  <p>to force the code to compile.</p>