Process memory divided in to 4 main section -
1. Stack Section.
2. Heap Section.
3. Data Section.
4. Text Section.
Stack - Stack section is basically used for local variables.
Heap - Heap section used for dynamic memory allocation. Heap section managed via call of free, malloc, delete, new function.
Data - This section used for static and global variables.
Text - This section hold compiled code from non volatile memory when program launched.
Post a Comment