Eli5-What does a “stack overflow” mean?

1.21K views

Eli5-What does a “stack overflow” mean?

In: 847

41 Answers

Anonymous 0 Comments

Stack Overflow is a programming forum.

On a serious note: A Stack is a data storing structure. You can put information in, and take information out. A stack works in a LIFO (last in first out) format, where the last item you put in, will be the first you take out, like a stack of stuff IRL (hence the name stack).

A stack overflow is when you try to add data to a stack that has reached the item limit. Like when you try to stuff a box which is already full.

Keep in mind that a stack is coded to have an infinite storage space, but our RAM can only handle so much right? That’s why we set a data limit to a stack. A stack overflow happens when we exceed the limit we placed. The program will prohibit us from adding anymore to the full stack.

You are viewing 1 out of 41 answers, click here to view all answers.