From low address to high address:
1. Code area "contains constant": binary code that holds the body of the function
2. Global variable Area "initialized + uninitialized":
The storage of global variables and static variables is put together, initialized global variables and static variables in an area, uninitialized (global variables and static variables) in another adjacent area. System released after the program is finished
3, Heap: by the programmer assigned to release, if the programmer does not release, the end of the program may be recycled by the OS. Note that it is not the same as the heap in the data structure, but the distribution is similar to the linked list,
4, Stack: automatically allocated by the compiler release, stored function parameter value, local variable value and so on. It operates in a manner similar to a stack in a data structure.
:
The distribution of C + + programs in storage