Getting dynamically allocated array size
问题 In "The C++ Programming Language" book Stroustrup says: "To deallocate space allocated by new , delete and delete[] must be able to determine the size of the object allocated. This implies that an object allocated using the standard implementation of new will occupy slightly more space than a static object. Typically, one word is used to hold the object’s size. That means every object allocated by new has its size located somewhere in the heap. Is the location known and if it is how can I