Copyright ©2004 Pearson Addison-Wesley. All rights reserved.
The usage of stack is commonly in daily life.
e.g., Dishes used by guests in a buffet restaurant.
Stacks are the frequently used data structure in programming.
e.g., Before jumping to a sub-function, the variables in the current function are pushed into a stack.
Array is one of the approaches to implement the stack.