title: Finding size of dynamically allocated array
body: <p>Why is it not possible to get the length of a buffer allocated in this fashion.</p>
  
  <pre><code>AType * pArr = new AType[nVariable];
  </code></pre>
  
  <p>When the same array is deallocated </p>
  
  <pre><code>delete [] pArr;
  </code></pre>
  
  <p>the runtime must know how much to deallocate. Is there any means to access the length before deleting the array. If no, why no such API is provided that will fetch the length?</p>