From e641db79470a1b213f86a85682f858e01291f8b0 Mon Sep 17 00:00:00 2001 From: Yuelin Xin Date: Tue, 18 Jun 2024 10:04:15 +0800 Subject: [PATCH] Update summary.md --- en/docs/chapter_heap/summary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/docs/chapter_heap/summary.md b/en/docs/chapter_heap/summary.md index cc86643d3..9f51001bd 100644 --- a/en/docs/chapter_heap/summary.md +++ b/en/docs/chapter_heap/summary.md @@ -14,4 +14,4 @@ **Q**: Is the "heap" in data structures the same concept as the "heap" in memory management? -The two are not the same concept, even though they are both referred to as "heap". The heap in computer system memory is part of dynamic memory allocation, where the program can use it to store data during execution. The program can request a certain amount of heap memory to store complex structures like objects and arrays. When these data are no longer needed, the program needs to release this memory to prevent memory leaks. Compared to stack memory, the management and usage of heap memory demands more caution, as improper use may lead to memory leaks and dangling pointers. +The two are not the same concept, even though they are both referred to as "heap". The heap in computer system memory is part of dynamic memory allocation, where the program can use it to store data during execution. The program can request a certain amount of heap memory to store complex structures like objects and arrays. When the allocated data is no longer needed, the program needs to release this memory to prevent memory leaks. Compared to stack memory, the management and usage of heap memory demands more caution, as improper use may lead to memory leaks and dangling pointers.