A stack is an abstract data type.The stack contains two main operations PUSH and POP. Push inserts an element to the top of the stack whereas pop eliminates the element that is on the top of the stack. This is depicted as LAST IN FIRST OUT. Yes, the last element that enters the stack by using push operation is the one which gets eliminated by the pop operation. This can be easily understood from the below Image. I have rote a fe line of cod in C to depict the above function.
-
Notifications
You must be signed in to change notification settings - Fork 0
KalyanVem/Stack-Implementation-In-C-Using-arrays
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
A simple lines of C code that shows how a stack works.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published