Answer Posted / pankaj saraf
Memory Layout consists following segments where data/text
are managed:
1) Text Segment : Consists serial of instruction.
2) Data Segment : Consists, Data default or defined class
specifier
i) Stack Segment : Area where the current function data
is managed.
ii) Heap Segment : Area where dynamically allocated data
stored.
3) BSS Segment: For uninitialized data.
Data segment is actually contains the static data which is
decided on the compile time. Rest of Area is used by Stack
and Heap which is actually modified run time. Stack grows
from higher address to lower Address. Heap grow just
opposite to the stack.
Anything else you guys are invited to add. :)
| Is This Answer Correct ? | 36 Yes | 7 No |
Post New Answer View All Answers
What is the difference between the expression “++a” and “a++”?
What is the best way to store flag values in a program?
List some of the static data structures in C?
What is sizeof return in c?
What is wrong with this program statement? void = 10;
What is exit() function?
Is multithreading possible in c?
define string ?
What is the use of gets and puts?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What is clrscr in c?
I have seen function declarations that look like this
What is "Duff's Device"?
Describe newline escape sequence with a sample program?
What are control structures? What are the different types?