Memory Layout of C program
Memory layout of a C program typically represented by five main segments: Stack Segment: Local variables reside in stack, and it also handles function call management. Heap Segment: All dynamic memory allocation (memory allocation during runtime using functions like malloc(), calloc(), …etc.) manages by heap dynamic. BSS (Uninitialized Data Segment): Stores global and static variables […]
Memory Layout of C program Read More »