Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
role of destructor during DMA
//g++ 5.4.0 #include <iostream> using namespace std; class sample { public: ~sample() { cout<<"destr called\n"; } }; int main() { sample *a1=new sample(); printf("hhhh"); sample *a2=new sample(); delete a1; //delete a2; return 0; }
run
|
edit
|
history
|
help
0
Straight Max-Min
lab17feb22x4B.cpp
Buenos Amigos
ExceptInviteClass
cppPyClamInher
BinTree
Some-stuff
find first non repeating
SetHotel
4C test