how delete [] knows how many objects to deallocate? In C++, when you use `delete[]` to deallocate memory allocated with `new[]`, the process involves some behind-the-scenes management that keeps track of the number of objects being deallocated. Here's how it works: 1. Memory Allocation Metadata: When you allocate memory using `new[]`, the C++ runtime typically stores additional metadata about the allocation. This metadata is usually placed just before the memory block you requested. This metadata includes the size of the allocation, which helps `delete[]` determine how many objects to deallocate. 2. Pointer Adjustment: When you call `delete[]`, the runtime uses the pointer you provide to locate this metadata and determine the size of the allocated array. It then uses this information to properly call the destructor for each object in the array and finally deallocates the memory. 3. Destruction Process: For each object in the array, the destructor is called in reverse order of ...