Recommended
PPTX
PDF
PPTX
PPTX
PPTX
PPTX
PPTX
Operations on Stack, Stack using Array and Linked List
DOCX
PDF
PPTX
PPT
data structure, stack, stack data structure
PPT
Data structures & Algorithmsssss -03.ppt
PPTX
STACK_IN_DATA STRUCTURE AND ALGORITHMS.pptx
PPTX
PDF
PPTX
Data structure by Digvijay
PPT
MO 2020 DS Stacks 1 AB.ppt
PPTX
Stack data structure class 12 cbse 2024.pptx
PDF
Introduction to Stack.pdf explained stack
PPTX
CS8391-Data Structures Unit 2
PPTX
PPT
stack, opeartions on stack, applications of stack
PDF
4-Stack --------------------------------in C++.pdf
PDF
PDF
PPTX
PDF
PPTX
PPTX
Logistic Regression used in data mining used
PPTX
PrincipalComponentAnalysis used in data preprocessing
More Related Content
PPTX
PDF
PPTX
PPTX
PPTX
PPTX
PPTX
Operations on Stack, Stack using Array and Linked List
DOCX
Similar to Stack-data-structure.ppsxErwewwwrrterewewew
PDF
PPTX
PPT
data structure, stack, stack data structure
PPT
Data structures & Algorithmsssss -03.ppt
PPTX
STACK_IN_DATA STRUCTURE AND ALGORITHMS.pptx
PPTX
PDF
PPTX
Data structure by Digvijay
PPT
MO 2020 DS Stacks 1 AB.ppt
PPTX
Stack data structure class 12 cbse 2024.pptx
PDF
Introduction to Stack.pdf explained stack
PPTX
CS8391-Data Structures Unit 2
PPTX
PPT
stack, opeartions on stack, applications of stack
PDF
4-Stack --------------------------------in C++.pdf
PDF
PDF
PPTX
PDF
PPTX
More from RamaKrishnaErroju
PPTX
Logistic Regression used in data mining used
PPTX
PrincipalComponentAnalysis used in data preprocessing
PPT
Fourier-Series SAMPLE PRESENTATION FOR LEARNING
PPT
311introductiontomachinelearning.ppt12345
PPTX
Day17.pptx department of computer science and eng
PPTX
Day15.pptx school of computer science and ai
PPTX
Day3 datamining recent trends and advancements
PPTX
Day2 Applications of datamining using differe
PPTX
Introduction about Applications of data mining
PPTX
Googlecolab1 tutorial for data science practise
PPTX
Data Preprocessing techniques for applications
DOCX
TEXMAKER Overview research plagrism check
DOCX
BioIn_Pap1dramaprevenbtionsakcnnshejjsja
PPTX
PLSQL_cur.pptx presentation uploadtttees
PPT
PPTX
PPT
PPT
PPTX
PPTX
Recently uploaded
PPTX
MELA QUIZ 2026 | Silchar Medical College & Hospital | 11-01-2026
PPTX
PLATELET RICH PLASMA in regenerative med
PPTX
Capacity Building Programme for Teachers on Equitable and Inclusive Education
PPTX
Blood, Blood Composition, Blood Groups, Disorders of Blood.pptx
PPTX
SIZE REDUCTION Prepared By: Ms. Vaishnavi Ghormade
PDF
Master3 Realms and Yoga All students by LDMMIA
PPTX
OverView of AI in Products in Odoo 19
PDF
1. AI for E-content Development: What and Why, 2. E- content Development thro...
PPTX
History in your Hands Class 5 January 2026 online slides.pptx
PPTX
Redox Titration - Oxidation and Reduction
PPTX
what are the Talent pool in Odoo 19 Recruitment
PPTX
special senses-eye, ear, nose, tongue.pptx
PPTX
ANTI- RHEUMATICS CHAPTER NO.05 PHARMACOGNOSY
PPTX
Complete and Detailed Overview of Odoo 18 Contact
PPTX
Java Programming_BJD_Slideshare-Introduction.pptx
PPTX
ANTI-TUSSIVE CHAPTER NO.05 PHARMACOGNOSY
PDF
ATOMIC-STRUCTURE.pdf/class 11 chemistry/IITJEE AND NEET/By: K SANDEEP SWAMY(M...
PPTX
When UDL is no longer enough: Examining post-UDL reflections on inclusive des...
PDF
2.India-and-Her-Neighbours ppt.pdf/Social science Grade 7 part -2 By:K SANDE...
PPTX
Birthday Field in Employee Records Odoo 19
Stack-data-structure.ppsxErwewwwrrterewewew 1. 2. What is a STACK ?
A stack is a container of elements that are inserted
and
removed according to the last-in first-out (LIFO)
principle.
A stack is a ordered list of elements of same data
type
A stack is a Linear list
3. What is a STACK ?
0 1 2 3 4
In a stack all operation like
insertion and deletion are
performed at only one end
called Top
4. What is a STACK ?
In a stack all operation like
insertion and deletion are
performed at only one end
called Top
1
2
3
4
0
Insertion Deletion
Top
5. 6. Operations on STACK ?
Insertion
Deletion
Displaying
Creation #define SIZE 5
int stack[SIZE];
1
2
3
4
0
stack
7. Operations on STACK ?
Insertion
Deletion
Displaying
Creation
void push(element){
if(Stack is full)
{
printf(“FULL!!!”);
}
else
{
Top++;
stack[Top] = element;
}
}
1
2
3
4
0
stack
Insertion operation is called as “push”
8. Operations on STACK ?
Insertion
Deletion
Displaying
Creation
int pop( ){
if(Stack is Empty)
{
printf(“EMPTY!!!”);
return Top;
}
else
{
deleted = stack[Top];
Top--;
return deleted;
}
}
1
2
3
4
0
stack
Deletion operation is called as “pop”
9. Operations on STACK ?
Insertion
Deletion
Displaying
Creation
void display( ){
if(Stack is Empty)
{
printf(“EMPTY!!!”);
}
else
{
for(i=Top; i>-1; i--)
printf(“%dn”,stack[i]);
}
}
1
2
3
4
0
stack