
please wait
|
|
p1 = p2;
doesn't crash the program once terminated, cause the destructor should be ran twice on the same memories? I don't understand why it DOESN'T crash!main()
ends. Just before, when you assign p1 = p2;
no classes have been destructed. Why would that cause an error?
|
|
|
|
|
|
|
|
|
|
|
|