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 non standard function in c
What are the disadvantages of c language?
What is main () in c language?
What is multidimensional arrays
List some of the dynamic data structures in C?
What is the best way to store flag values in a program?
What is putchar() function?
Explain what is the difference between text files and binary files?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What is a loop?
How can my program discover the complete pathname to the executable from which it was invoked?
What are the string functions? List some string functions available in c.
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
How can I list all of the predefined identifiers?