cpp/memory/malloc_and_new #122
Replies: 2 comments
-
|
很棒的教程!捉个小小的虫: void * operator new (size_t size) |
Beta Was this translation helpful? Give feedback.
0 replies
-
new如果给静态指针成员初始化时,指针在静态存储区,但是指向的对象还是在堆区。也就是说自由存储区只有堆和内存池,而内存池也在堆中 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
cpp/memory/malloc_and_new
本文详细介绍了C++中malloc、new、free、delete的区别,包括内存分配方式、内存管理方式、内存释放方式等方面的分析。
https://csguide.cn/cpp/memory/malloc_and_new.html
Beta Was this translation helpful? Give feedback.
All reactions