Data segment: Difference between revisions

Content deleted Content added
Importing Wikidata short description: "Storage segment"
Data: This not so in general. I guess maybe it is so on some embedded systems. In general data segment is separate and values are initialized when compiled.
Tags: Mobile edit Mobile web edit
Line 21:
int i = 3;
char a[] = "Hello World";
 
The values for these variables are initially stored within the read-only memory (typically within the code segment) and are copied into the data segment during the start-up routine of the program.
 
=== BSS ===