top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is stack and explain different types of stack operations?

+2 votes
316 views
What is stack and explain different types of stack operations?
posted Apr 22, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Stack is one of the linear structures . Stack data structure is used when there is a requirement of Last In Fast Out, well known as "LIFO" in short. Push (in) and Pop(out) are main operations are performed over stack. Array is used to implement stack when #of items/elements are known in advance and linked list when # of items/elements are not fixed and can change at run time.

answer Apr 22, 2015 by Vimal Kumar Mishra
...