• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is a Stack?




 
#1

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



Reply




 
#2

A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle.



Reply




 
#3

Stack is an abstract data type with a bounded(predefined) capacity. It is a simple data structure that allows adding and removing elements.



Reply




 
#4

The basic implementation of a stack is also called a LIFO (Last In First Out) to demonstrate the way it accesses data.



Reply




 
#5

The basic implementation of a stack is also called a LIFO (Last In First Out) to demonstrate the way it accesses data.



Reply




 
#6

A stack is a conceptual structure consisting of a set of homogeneous elements and is based on the principle of last in first out.



Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Powered By MyBB, © 2002-2017 MyBB Group.