Memory Structure of Programs
program when loaded into memory has the following structure:
Contains executable instructions of the program. It’s a
Contains global/static variables and is further divided as:
literals like “Some string”
globals and static variables.
Contains global and static variables too but those which have not
been initialized. Usually, they are initialized to 0.
This is where all the temporary and local variables are stored.
This is where all the dynamically allocated variables are stored.
and stack grow opposite to each other and if they grow so much that
they meet or tend to overshoot each other, then it results in memory
problem usually leading to emergency termination of the program by