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 are multibyte characters?
Can you think of a logic behind the game minesweeper.
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is return in c programming?
What is static and auto variables in c?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain what is the stack?
How do you use a pointer to a function?
please explain every phase in the "SDLC" in the dotnet.
When should the volatile modifier be used?
Which is better malloc or calloc?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Is c weakly typed?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)