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

后端 未结 0 957
北荒
北荒 2021-02-15 03:38

If I have a pointer like so:

int *test = new int;

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

int *t         


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