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
1
Sorting sort function stl in c++
Wipro Problem 1
Stock buy/sell, maximum subarray problem
find first non repeating
TemplateBinTree
Count edges in a graph
linkage
stack
max subsequence of array