
Linear Data Structure 483
14.12 STACK-RELATEDTERMS
Stack: It is an array of size N, where N is an unsigned integer.
Storage: A function contains local variables and constants. These are stored in a stack. Only global
variables are stored in a stack frame.
Stack frames: This data structure holds all formal arguments, return address and local variables on
the stack at the time when a function is invoked.
TOP: The top of the stack indicates its door. The stack top is used to verify the stack's current position,
that is, underflow and overflow. Some programmers refer to -1 assigned to top as initial value. This
is because when an element is adde ...