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
Can a pointer be static?
Explain how do you search data in a data file using random access method?
What are called c variables?
What are the advantages of external class?
What is the purpose of 'register' keyword?
How do I read the arrow keys? What about function keys?
How does selection sort work in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is pointers in c?
What is function what are the types of function?
How many types of functions are there in c?
Write a program of prime number using recursion.
Explain do array subscripts always start with zero?
What is cohesion and coupling in c?
What are the types of type specifiers?