Top "Stack" questions

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

Why do stacks typically grow downwards?

I know that in the architectures I'm personally familiar with (x86, 6502, etc), the stack typically grows downwards (i.e. every …

architecture stack history
How to change stack size for a .NET program?

I have a program that does recursive calls for 2 billion times and the stack overflow. I make changes, and then …

.net resize stack stack-overflow
Android Application Class Lifecycle

The android app I am working on overrides the Application class to store lightweight state (username, gps location, etc) in …

android android-activity stack lifecycle
Reverse Polish Notation Java

I want to make Reverse Polish Notation algorithm, but my code isn't working. Can anyone explain me why ? In my …

stack switch-statement case token rpn
Which will be loaded first static variable or static block?

One of my friends asked me that which will load first static variable or static block. My answer points to …

java static stack core
Swift stack and heap understanding

I want to understand what is stored in the stack and heap in swift. I have a rough estimation: Everything …

ios memory swift stack heap
string.c_str() deallocation necessary?

My code converts C++ strings to CStrings somewhat often, and I am wondering if the original string is allocated on …

c++ string memory-management stack heap
Program stack and heap, how do they work?

I know that every running process has pages associated with it in virtual memory and few of them will be …

stack kernel heap
pop and peek doing same in that case?

From all the sources I've read, they say - the difference between peek and pop is that peek doesn't remove …

c stack peek
Observable Stack and Queue

I'm looking for an INotifyCollectionChanged implementation of Stack and Queue. I could roll my own but I don't want to …

c# stack queue inotifycollectionchanged