Ticker

6/recent/ticker-posts

Header Ads Widget

Responsive Advertisement

C program to Implement Stack and its operation | Push | pop

STACK :- A Stack is a data structure following the LIFO(Last In, First Out) principle If you have trouble visualizing stacks, just assume a stack of books. In a stack of books, you can only see the top book If you want to access any other book, you would first need to remove the books on top of it The bottom-most book in the stack was put first and can only be removed at the last after all books on top of it have been removed.
PUSH:- Push, which adds an element to the collection
POP :-Pop, which removes the most recently added element that was not yet removed.



When the above program is executed, it produces following results --



Post a Comment

0 Comments