Top "Stack" questions

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

What is the difference between a segmentation fault and a stack overflow?

For example when we call say, a recursive function, the successive calls are stored in the stack. However, due to …

c memory stack segmentation-fault stack-overflow
How are the different segments like heap, stack, text related to the physical memory?

When a C program is compiled and the object file(ELF) is created. the object file contains different sections such …

c memory-management stack elf
Which stack is used by Interrupt Handler - Linux

In a multitasking system when any hardware generates a interrupt to a particular CPU, where CPU can be performing either …

linux linux-kernel stack interrupt-handling top-halves
How do I iterate `std::stack` elements in a for loop?

I'm writing a FIR filter that is supposed to calculate running average of an input sequence. class RunningAverager { public: RunningAverager(…

c++ for-loop stl stack moving-average
"enter" vs "push ebp; mov ebp, esp; sub esp, imm" and "leave" vs "mov esp, ebp; pop ebp"

What is the difference between the enter and push ebp mov ebp, esp sub esp, imm instructions? Is there a …

assembly stack
c++ Vector, what happens whenever it expands/reallocate on stack?

I'm new to C++ and I'm using the vector class on my project. I found it quite useful because I …

c++ vector stack allocator
Convert Infix to Postfix with Stack

I have to make a program that changes an expression written in Infix notation to Postfix notation. I am running …

java stack infix-notation
Declare large array on Stack

I am using Dev C++ to write a simulation program. For it, I need to declare a single dimensional array …

c++ arrays memory stack allocation
When is array allocated on stack in c#?

I've been trying to figure out when things get allocated on stack and I can't figure out how would you …

c# arrays stack heap allocation
thread stack size on Windows (Visual C++)

Is there a call to determine the stack size of a running thread? I've been looking in MSDN thread functions …

windows stack stack-size