What do you mean by stack ? Mention it's characteristic

What do you mean by stack ? Mention it's characteristic and applications in real life

  • C
  • 16 May
  • 6 Answers

6 Answers
1-6 of  6
6 Answers
  • STACK
    A stack is a heterogeneous data structure which works on the concept of LIFO(Last In, First Out), which means the element inserted in the last, will be the first element to be deleted from the stack. 
    There are two operations that can be performed on Stack:
    1. PUSH
        Inserting or adding an element into the stack.
    2. POP
        Deleting or removing an element from the stack. 
    Characterstic
    1. The distinguishing characterstic of a stack is that the addition or removal of items take place at the same end. This end is commonly referred to as the "Top of Stack(ToS)".
    2. If the stack is full, then no extra element can be inserted into the stack, and this condition is known as "Overflow Condition".
           Let the size of stack be n. 
                                If ToS=n-1, then the condition is overflow condition.
    3. If the stack is empty, then no element can be deleted from the stack, and this condition is known as "Underdlow Condition".
                                If ToS<0, then the condition is underflow condition. 

  • the stack is a data structure which is used to store elements and follows the property of FILO (first in last out) , few of the terms to be aware of are  top(top element of stack) , push (elements insertion into stack) , pop (elements deleted from stack). it is used in evaluation of infix and postfix expressions

  • A stack is a type of data structure which is used to store objects and it works on LIFO(Last In First Out Paradigm). It's size not defines at the start of a program.

  • stack is the last im first out..example -water mug
    characteristics of stack is the addition and removal of item takes place the same end..it's called top.

Data Structure

Didn't get the answer.
Contact people of Talent-Data Structure directly by clicking here