Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Big O Notation array problem
Substring search
Exempel 1
Empty C++ Script
qsort
A • Potato Sacks
Abejas beta
wealth of banks
For Hello World
binder
Please log in to post a comment.