Can You Explain About STACK In Data Structures?
Please explain me about stack , its use , functions as much as you know . I'm a b.tech student . I'm feel difficult to understand about it in class room ..so please explain me about it in a simle manner.
2 Answers - Sort by: Date | Rating
A stack is used to implement LIFO (last in, first out) storage of data. The act of storing things on the stack is commonly known as "pushing" and the act of removing things from the stack is know as "popping". An example how a stack would work when storing some numbers:
Push 4
Push 7
Push 5
Push 9
First pop operation return 9
Second pop returns 5
Third pop returns 7
Fourth pop returns 4
Any additional pop request will result in an error. Notice that the elements were returned in the opposite order that they were stored in.
Push 4
Push 7
Push 5
Push 9
First pop operation return 9
Second pop returns 5
Third pop returns 7
Fourth pop returns 4
Any additional pop request will result in an error. Notice that the elements were returned in the opposite order that they were stored in.
0
0
In data structure stack mean a bundle. E.g. A stacks of data in a table, A stack of books, A stack of CDs.
0
2
- What Is Hierarchy Or Structure Of Database?
- Explain How Records And Related Records Are Deleted To Ensure The Integrity?
- What Is The Definition Of Hierarchical?
- What Is Rule Based Query?
- Network Data Model And How Its Structure Contributed To Database Environment Development?
- What Is Null In Database?
- What Is Relationship In Terms Of Dbms?
- Which Of The Following Statements About Referential Integrity?
- Will The Little Ma Mind Get The Ind Entity?
- Describe Hierarchical Database And It's Example?
- What Are The Advantagem Of Database Management Approach To Organizing?
- Why Does Integrating Flat File Data In A Database Improve Data Integrity?
- What Is Sequential?
- What Do Index Mean?
- How To Remember Stationary And Stationery?
- What Is Program Data Independence?
- List Of Different Database Management System?
- Discuss The Concept Of Data Independence And Its Importance In A Database Environment?
- What Are The Various Keys In Sql?
- What Is Database Development?
- What Is External Level?
- What Are The Component Of Database?
- Define 1NF, 2NF, 3NF. Give An Example Of Each?
- What Is CAPTCHA?
- What Are Integrity Rules?

New Comment - Comments are editable for 5 min.