Top "Stack" questions

A stack is a last in, first out (LIFO) abstract data type and data structure.

What and where are the stack and heap?

Programming language books explain that value types are created on the stack, and reference types are created on the heap, …

memory-management stack language-agnostic heap dynamic-memory-allocation
Stack smashing detected

I am executing my a.out file. After execution the program runs for some time then exits with the message: **** …

c exception stack
How do you implement a Stack and a Queue in JavaScript?

What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard …

javascript data-structures stack queue
Stacking DIVs on top of each other?

Is it possible to stack up multiple DIVs like: <div> <div></div> <div&…

css html stack css-float
How to implement a queue using two stacks?

Suppose we have two stacks and no other temporary variable. Is to possible to "construct" a queue data structure using …

algorithm data-structures stack queue
Java ArrayList how to add elements at the beginning

I need to add elements to an ArrayList queue whatever, but when I call the function to add an element, …

java arrays arraylist stack
What is the function of the push / pop instructions used on registers in x86 assembly?

When reading about assembler I often come across people writing that they push a certain register of the processor and …

assembly x86 stack terminology
what is the basic difference between stack and queue?

What is the basic difference between stack and queue?? Please help me i am unable to find the difference. How …

stack queue
Android: Clear the back stack

In Android I have some activities, let's say A, B, C. In A, I use this code to open B: …

android android-intent android-activity stack
Why is Java Vector (and Stack) class considered obsolete or deprecated?

Why is Java Vector considered a legacy class, obsolete or deprecated? Isn't its use valid when working with concurrency? And …

java vector stack deprecated obsolete