6.9 — Dynamic memory allocation with new and delete « Learn C++
Because we are allocating an array, C++ knows that it should use the array version of new instead of the scalar version of new. Essentially, the new[] operator is called, even though the [] isn’t placed next to the new keyword. When deleting a dynamically...