This question was inspired by a similar question: How does delete[] ... delete [] does know the size that was allocated. However, that knowledge ...
stackoverflow.com