Top "Stack" questions

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

Navigating Java call stack in Eclipse

In debuggers like GDB, when you stop at a breakpoint, you can easily move up the call stack and examine …

java eclipse stack call
How to clear the Android Stack of activities?

I have an application with several Activities in Android and I want the user to be able to log-out by …

android android-activity stack back-stack
Proper stack and heap usage in C++?

I've been programming for a while but It's been mostly Java and C#. I've never actually had to manage memory …

c++ memory-management stack heap c++-faq
Convert from an infix expression to postfix (C++) using Stacks

My lecturer gave me an assignment to create a program to convert and infix expression to postfix using Stacks. I've …

c++ stack infix-notation postfix-notation
Stack and Queue, Why?

Why and when should I use stack or queue data structures instead of arrays/lists? Can you please show an …

data-structures stack queue
Array-Based vs List-Based Stacks and Queues

I'm trying to compare the growth rates (both run-time and space) for stack and queue operations when implemented as both …

arrays data-structures stack queue linked-list
Arrays, heap and stack and value types

int[] myIntegers; myIntegers = new int[100]; In the above code, is new int[100] generating the array on the heap? From what …

c# arrays memory stack heap
Calling delete on variable allocated on the stack

Ignoring programming style and design, is it "safe" to call delete on a variable allocated on the stack? For example: …

c++ stack heap delete-operator
Browser Javascript Stack size limit

I am getting some client-side Javascript stack overflow issues specifically in IE browser, this is happening inside a third party …

javascript browser stack limit
How to remove a stack item which is not on the top of the stack in C#

Unfortunately an item can only be removed from the stack by "pop". The stack has no "remove" method or something …

c# stack