title: How do I delete this 2D array in c++
body: <p>In simple 1D array:</p>
  
  <pre><code>node *nodes =  new node[MAX_NODES];
  </code></pre>
  
  <p>Deleting by:    </p>
  
  <pre><code>delete [] nodes;
  </code></pre>
  
  <p>Deletes all the nodes allocated in the array.</p>
  
  <p>But in this case:</p>
  
  <pre><code>float (*buildingArray)[3] = new float[10][3];
  </code></pre>
  
  <p>Does this statement make <code>buildingArray</code> a single dimension array of 3 float pointers? And this is the deallocation line:</p>
  
  <pre><code>delete[] buildingArray;
  </code></pre>
  
  <p>Does the above deallocation <code>delete</code> the array, but I am doubtful about whether it will delete its references?</p>