Re: Use of Stack Data Structure

Posted 27 December 2009 - 04:38 PM

hmm... I don't know the proper usage of them, or particularity what the stack was originally designed for, but the only language I have used it in is assembly and that's just for gaining more space to hold data when I enter or exit a subroutine or need a place to dump some stuff when I need the main registers. It's just another data structure, which (as they all do) have their place and purpose.

Re: Use of Stack Data Structure

Posted 28 December 2009 - 02:06 PM

Commands in programming language. For example, recursive method calls use a stack to store order or precedence for each call. Also, if you've worked in Java, you may have heard of a StackOverflowError.