Too Long; Didn't Read
Process address space or memory layout of C program is organized in the following fashion: Text segment contains executable instructions of your C program, its also called code segment also. Text segment is sharable so that only a single copy needs to be in memory for different executing programs, such as text editors, shells, and so on. The text segment is read-only, to prevent a program from accidentally modifying its instructions. The uninitialized data segment also contains all global and static variables that do not have explicit initialization in source code. The stack segment is an area where local variables are stored. By saying local variable means that all those variables declared in every function including.