

This segment can be further classified into the initialized read-only area and the initialized read-write area.įor instance, the global string defined by char s = “hello world” in C and a C statement like int debug=1 outside the main (i.e. Note that, the data segment is not read-only, since the values of the variables can be altered at run time. A data segment is a portion of the virtual address space of a program, which contains the global variables and static variables that are initialized by the programmer. Initialized data segment, usually called simply the Data Segment.


