delete causes core dumped, and why?

前端 未结 0 1679
星月不相逢
星月不相逢 2021-01-03 20:18

I encountered core dump when delete the array new without delete[]

here is my code:

Page *p;
p = new Page[10];
delete p;

but when I tr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题