An understanding of memory layout in C – Part 1

This article tries to discuss the basics of memory layouts in C.  When a C file is preprocessed, compiled, assembled and linked – a memory layout of the code/data/stack/heap area is generated. The C program memory layout is depicted below FIG COURTESY:https://en.wikipedia.org/wiki/File:Program_memory_layout.pdf The different sections are .text segment – code section – the C code […]