Describe the memory arrangement of a C program.
What will be an ideal response?
A series of executable program instructions is located in the text memory segment. During compilation time, the size of all the global data is calculated and allocated in the data segment to store all the initialized and uninitialized global data. The next memory segment is shared by the stack and heap. Both of them are allocated at run time. The stack is used to store program state such as procedure arguments, local variables, and register values. The heap holds all dynamic variables allocated by malloc() and the new operator.
You might also like to view...
Press ________ to move the insertion point between the left, center and right sections of a footer or header
Fill in the blank(s) with correct word
When you rip audio files, the amount of information saved per second is called the ________
Fill in the blank(s) with correct word