0

Say I do this:

int* x = new int[n];

When I'm ready to call delete[] on this array, since it is filled just with integers, is the runtime just O(1) in that the memory is freed but no destructors are called, or are some form of destructors called on each integer?

Michael Stachowsky
  • 717
  • 1
  • 5
  • 21

0 Answers0