Freeing Memory From An Array

前端 未结 2 444
温柔的废话
温柔的废话 2020-12-12 06:20

I am experimenting with memory allocation and deletion and had a question about how to properly delete/free memory. Below is a very small and working bit of code:

         


        
2条回答
  •  眼角桃花
    2020-12-12 06:54

    It depends on compiler you use. For some compiler, memory deleted is hold by application, not returning to OS immediately. Sorry that I cannot find an official link about it now.

提交回复
热议问题