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?