beingchinmay
New Member
Stack is responsible of keeping track of running memory needed in your application. As the name says stack it stacks this memory allocation on the top of the first memory allocation. You can think about stack as series of compartment or boxes put on top of each other. Memory allocation and de-allocation is done using LIFO (Last in first out) logic. In other words memory is allocated and de-allocated at only one end of the memory i.e. top of the stack. Reference pointers are allocated on stack. At the end event clears all the memory variables which are assigned on stack Static Memory – Stack Details stored in stack are Name, Data type and Value of the variable