Results 1 to 5 of 5

Thread: What is stack?

  1. #1
    Senior Member
    Join Date
    Jun 2015
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is stack?

    Stack operates under the rule of last in, first out. It contains two basic operations Pop and push. A stack can hold any data type. Stack doesn’t perform flexible operation.

  2. #2
    Junior Member
    Join Date
    Aug 2016
    Location
    USA
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle. In the pushdown stacks only two operations are allowed: push the item into the stack, and pop the item out of the stack.

  3. #3
    Junior Member
    Join Date
    Feb 2017
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello, We shall see the stack implementation in C programming language here. You can try the program by clicking on the Try-it button. Thanks!

    -----
    devsecops

  4. #4
    Senior Member RH-Calvin's Avatar
    Join Date
    Apr 2015
    Location
    Forum
    Posts
    973
    Thanks
    0
    Thanked 3 Times in 3 Posts
    In computing, a stack is a data structure used to store a collection of objects. Individual items can be added and stored in a stack using a push operation. Objects can be retrieved using a pop operation, which removes an item from the stack.
    Cheap VPS | $1 VPS Hosting
    Cheap Windows VPS | Remote Desktop Access
    Cheap Dedicated Server | Free Setup and IPMI

  5. #5
    Junior Member
    Join Date
    Dec 2018
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    1.
    a pile of objects, typically one that is neatly arranged.
    "a stack of boxes"
    synonyms: heap, pile, mound, mountain, pyramid, mass, store, stockpile, hoard, load, tower, drift, clamp, hack; More
    2.
    a chimney, especially one on a factory, or a vertical exhaust pipe on a vehicle.
    synonyms: chimney, factory chimney, chimney stack, smokestack, funnel, exhaust pipe
    "the main stack belches out clouds of black smoke"
    verb
    1.
    arrange (a number of things) in a pile, typically a neat one.
    "the books had been stacked up in neat piles"
    synonyms: heap (up), pile (up), make a heap/pile/stack of; More
    2.
    shuffle or arrange (a pack of cards) dishonestly so as to gain an unfair advantage.
    "I know the cards are stacked"

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •