What is Stack and Heap?
Actual Execution of program starts when it loads on main memory (RAM) . Memory assigned in the RAM can be divided into the four segments . First segment use to store instructions Second segment of the memory is use to store Global/static variable (these variables are not declared under any function such as main). Stack …