How the compiler differentiates delete and delete
View Single Post
Short answer: Magic.
Long answer: The run-time system stores the number of objects, n, somewhere where it can be retrieved if you only know the pointer, p.
I have added the reference to the question in the
Some C-C++ Programming tips