Data segment: Difference between revisions

Content deleted Content added
Line 18:
 
int val = 3;
char string[] = "Hello World";bbbbbbbbbbbbbb
 
The values for these variables are initially stored within the read-only memory (typically within ''.text'') and are copied into the ''.data'' segment during the start-up routine of the program.