Google News
logo
CPP - Interview Questions
What are the four partitions in which C++ compiler divides the RAM?
(a) Stack Area : This part of memory is used to store formal parameters, local variables, return addresses of function call etc.

(b) Program Code Area : This part of memory is used to store the object code of the program.

(c) Global Variable Section : This part of memory is used to store global variables defined in the program.

(d) Heap Area or Free Storage Pool : It consists of unallocated memory locations which are allocated dynamically during program execution using new operator.
Advertisement