Close sidebar

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
  • 11306 Views
  • 6 Answers
Your Answer

Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out).br /Mainly the following three basic operations are performed in the stack:br /strongPush: /strongAdds an item in the stack. If the stack is full, then it is said to be an Overflow condition.br /strongPop:/strong Removes an item from the stack. The items are popped in the reversed order in which they are pushed. If the stack is empty, then it is said to be an Underflow condition.br /strongPeek or Top:/strong Returns top element of stack.br /strongisEmpty: /strongReturns true if stack is empty, else false.

Comments

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