0

When using operator new we explicitly provide the size of memory to be allocated:

int* arr = new int[100];

But when deleting, we just type delete []arr;
How does the compiler/program calculates the size of arr, as we provide no information about it to operator delete?

Eduard Rostomyan
  • 5,154
  • 1
  • 23
  • 56

0 Answers0