Whenever you're ready, walk me through how you'd approach this.
Walk through the exact memory layout of a C program, explaining where global, static, local, and dynamically allocated variables reside.
Address the text, read-only data, initialized data, BSS, heap, and stack regions. Explain how storage duration, initialization, linker placement, virtual memory, ASLR, and thread-local storage affect the simplified layout, and distinguish guarantees from implementation details.