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 functions getch() and getche()?
Can we increase size of array in c?
Explain the bubble sort algorithm.
What is an array? What the different types of arrays in c?
Write a Program to accept different goods with the number, price and date of purchase and display them
What does 4d mean in c?
What are shell structures used for?
What are the differences between new and malloc in C?
Explain #pragma statements.
What is the -> in c?
Why n++ execute faster than n+1 ?
#include
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
praagnovation
What is the use of clrscr?