An access violation or any other kind of undefined behaviour... since pointer2 is uninitialized in the beginning, and pointer1 will have a copy of that undefined value when delete [] is called during the second iteration.Quote:
Originally posted by AvDav
the seond iteration will cause an access violation on 'delete [] pointer1'.
