Does deleting a pointer delete the memory it's pointing too?

后端 未结 0 786
死守一世寂寞
死守一世寂寞 2021-02-15 03:28

If I have a pointer like so:

int *test = new int;

And I create another pointer that points to test like so:

int *t         


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