Nameslot is a .com-only forum – membership is free with full access; upgrades offer extras like banner ads and newsletter spots. ✅ Signature links are free. No AI-generated posts – share your own insights or risk account removal.
  • Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

What is a Stack?

beingchinmay

New Member
Joined
Sep 25, 2015
Messages
3
Reaction score
0
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
 
A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle.
 
Stack is an abstract data type with a bounded(predefined) capacity. It is a simple data structure that allows adding and removing elements.
 
The basic implementation of a stack is also called a LIFO (Last In First Out) to demonstrate the way it accesses data.
 
Top