Foo* set = new Foo[100];
// ...
delete [] set;

You don’t pass the array’s boundaries to delete[]. But where is that information stored? Is it standardised?

9 Answers
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *