Question:Define Stack and Heap in term of memory. 

Answer Stack: The stack is a block of memory for storing local variables and parameters.The stack is always reserved in a LIFO (last in first out) order; The stack is important to consider in exception handling and thread executions.Heap: The heap is memory set aside for dynamic allocation. You can allocate a block at any time and free it at any time. 

+ Report
Total Preview: 1057
Define Stack and Heap in term of memory.
Copyright © 2024. Powered by Intellect Software Ltd