Submit Search
Upload
Stack Data Structure
•
1 like
•
49 views
Er. Ganesh Ram Suwal
Follow
Stack data structure
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 3
Download now
Download to read offline
Recommended
week-15x
week-15x
KITE www.kitecolleges.com
Short Review of Stack
Short Review of Stack
Owali Shawon
Vcs8
Vcs8
Malikireddy Bramhananda Reddy
Array menu
Array menu
Sayantan Sur
Taller De Scilab
Taller De Scilab
Andrés Renteria
Ejercicios Scilab Completo
Ejercicios Scilab Completo
Ricardo Grandas
Trabajo Scilab
Trabajo Scilab
alexistorres
DS- Stack ADT
DS- Stack ADT
MythiliMurugan3
Recommended
week-15x
week-15x
KITE www.kitecolleges.com
Short Review of Stack
Short Review of Stack
Owali Shawon
Vcs8
Vcs8
Malikireddy Bramhananda Reddy
Array menu
Array menu
Sayantan Sur
Taller De Scilab
Taller De Scilab
Andrés Renteria
Ejercicios Scilab Completo
Ejercicios Scilab Completo
Ricardo Grandas
Trabajo Scilab
Trabajo Scilab
alexistorres
DS- Stack ADT
DS- Stack ADT
MythiliMurugan3
Functional php
Functional php
Jean Carlo Machado
Primer Punto
Primer Punto
gustavo206
งานPop pornapa
งานPop pornapa
Pw Mlp
Include
Include
andriarma
โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
knang
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
Atsushi Tadokoro
Nobody knows-except-g4mm4
Nobody knows-except-g4mm4
Xchym Hiệp
Session07 recursion
Session07 recursion
HarithaRanasinghe
Sas plot
Sas plot
WenSheng Chang
Javascript Common Mistakes
Javascript Common Mistakes
동수 장
What is python
What is python
EU Edge
Grokking TechTalk #16: Maybe functor in javascript
Grokking TechTalk #16: Maybe functor in javascript
Grokking VN
Loop
Loop
Hani Aljanabi
2 3. standard io
2 3. standard io
웅식 전
Javascript - The basics
Javascript - The basics
Bruno Paulino
แก้ไขงานคอม1
แก้ไขงานคอม1
Ykk'Famemy Jackson
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
jhebus
Quinto Punto Parte B
Quinto Punto Parte B
gustavo206
Linear queue
Linear queue
Er. Ganesh Ram Suwal
Circular queue
Circular queue
Er. Ganesh Ram Suwal
Stack using Linked List
Stack using Linked List
Sayantan Sur
Stack using Array
Stack using Array
Sayantan Sur
More Related Content
What's hot
Functional php
Functional php
Jean Carlo Machado
Primer Punto
Primer Punto
gustavo206
งานPop pornapa
งานPop pornapa
Pw Mlp
Include
Include
andriarma
โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
knang
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
Atsushi Tadokoro
Nobody knows-except-g4mm4
Nobody knows-except-g4mm4
Xchym Hiệp
Session07 recursion
Session07 recursion
HarithaRanasinghe
Sas plot
Sas plot
WenSheng Chang
Javascript Common Mistakes
Javascript Common Mistakes
동수 장
What is python
What is python
EU Edge
Grokking TechTalk #16: Maybe functor in javascript
Grokking TechTalk #16: Maybe functor in javascript
Grokking VN
Loop
Loop
Hani Aljanabi
2 3. standard io
2 3. standard io
웅식 전
Javascript - The basics
Javascript - The basics
Bruno Paulino
แก้ไขงานคอม1
แก้ไขงานคอม1
Ykk'Famemy Jackson
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
jhebus
Quinto Punto Parte B
Quinto Punto Parte B
gustavo206
What's hot
(18)
Functional php
Functional php
Primer Punto
Primer Punto
งานPop pornapa
งานPop pornapa
Include
Include
โปรแกรมย่อยและฟังชันก์มาตรฐาน
โปรแกรมย่อยและฟังชันก์มาตรฐาน
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
openFrameworks – 関数・クラス、オブジェクト指向プログラミング導入 - 多摩美メディアアートII
Nobody knows-except-g4mm4
Nobody knows-except-g4mm4
Session07 recursion
Session07 recursion
Sas plot
Sas plot
Javascript Common Mistakes
Javascript Common Mistakes
What is python
What is python
Grokking TechTalk #16: Maybe functor in javascript
Grokking TechTalk #16: Maybe functor in javascript
Loop
Loop
2 3. standard io
2 3. standard io
Javascript - The basics
Javascript - The basics
แก้ไขงานคอม1
แก้ไขงานคอม1
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
Ensemble: A DSL for Concurrency, Adaptability, and Distribution
Quinto Punto Parte B
Quinto Punto Parte B
Similar to Stack Data Structure
Linear queue
Linear queue
Er. Ganesh Ram Suwal
Circular queue
Circular queue
Er. Ganesh Ram Suwal
Stack using Linked List
Stack using Linked List
Sayantan Sur
Stack using Array
Stack using Array
Sayantan Sur
Stack prgs
Stack prgs
Ssankett Negi
Bubble Sort
Bubble Sort
Er. Ganesh Ram Suwal
STACK IMPLEMENTATION USING SINGLY LINKED LIST
STACK IMPLEMENTATION USING SINGLY LINKED LIST
Er. Ganesh Ram Suwal
STACK1.docx
STACK1.docx
CharanKeasavan
Data Structures : array operations in c program
Data Structures : array operations in c program
Raghavendra Narayan
stack.pptx
stack.pptx
MeghaKulkarni27
Single linked list
Single linked list
Sayantan Sur
Practical_File_Of_Data_Structure.pdf
Practical_File_Of_Data_Structure.pdf
VishwasChoclaty1
Doubly Linked List
Doubly Linked List
Er. Ganesh Ram Suwal
C programs Set 4
C programs Set 4
Koshy Geoji
Practical File of C Language
Practical File of C Language
RAJWANT KAUR
Stack of Data structure
Stack of Data structure
Sheikh Monirul Hasan
Double linked list
Double linked list
Sayantan Sur
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Eleanor McHugh
Data structures
Data structures
gayatrigayu1
Circular linked list
Circular linked list
Sayantan Sur
Similar to Stack Data Structure
(20)
Linear queue
Linear queue
Circular queue
Circular queue
Stack using Linked List
Stack using Linked List
Stack using Array
Stack using Array
Stack prgs
Stack prgs
Bubble Sort
Bubble Sort
STACK IMPLEMENTATION USING SINGLY LINKED LIST
STACK IMPLEMENTATION USING SINGLY LINKED LIST
STACK1.docx
STACK1.docx
Data Structures : array operations in c program
Data Structures : array operations in c program
stack.pptx
stack.pptx
Single linked list
Single linked list
Practical_File_Of_Data_Structure.pdf
Practical_File_Of_Data_Structure.pdf
Doubly Linked List
Doubly Linked List
C programs Set 4
C programs Set 4
Practical File of C Language
Practical File of C Language
Stack of Data structure
Stack of Data structure
Double linked list
Double linked list
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Data structures
Data structures
Circular linked list
Circular linked list
Recently uploaded
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
M Maged Hegazy, LLM, MBA, CCP, P3O
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
ranjana rawat
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
ranjana rawat
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
KurinjimalarL3
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
ranjana rawat
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur High Profile
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
rknatarajan
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
ssuser5c9d4b1
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
roncy bisnoi
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
Asst.prof M.Gokilavani
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
SIVASHANKAR N
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
upamatechverse
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
ranjana rawat
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Tsuyoshi Horigome
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
Soham Mondal
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
upamatechverse
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Suman Mia
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Suhani Kapoor
Recently uploaded
(20)
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
Stack Data Structure
1.
/*********** @author: Er.
Ganesh Ram Suwal ***********/ /*********** stack program ***********/ #include<stdio.h> #include<conio.h> #include<stdlib.h> #define MAXSIZE 5 int stack[MAXSIZE],data,top=-1; void push(); void pop(); void display(); void main() { int choice; start: printf("*** stack operation ****n"); printf("1: push operationn"); printf("2: pop operationn); printf("3: displayn); printf("4: exitn); printf("enter your choice = "); scanf("%d",&choice); switch(choice) { case 1:push(); break; case 2:pop(); break; case 3:display(); break; case 4:exit(0); break; default:printf("*** invalid choice !!! try again ***"); break; } goto start; getch(); } void push() { if(top== MAXSIZE -1) { printf("n************************************n"); printf("stack overflow"); printf("n************************************n"); } else { printf("n************************************n"); printf("enter data : "); scanf("%d",&data); top++; stack[top]=data; printf("************************************n"); } } void pop()
2.
{ if(top == -1) { printf("n************************************n"); printf("stack
underflow"); printf("n************************************n"); } else { data = stack[top]; printf("n************************************n"); printf("the pop element = %d",data); printf("n************************************n"); top--; } } void display() { int i; printf("the content of stack : "); if(top==-1) { printf("n************************************n"); printf("the stack is empty"); printf("n************************************n"); } else { printf("n************************************n"); for(i=0;i<=top;i++) { printf("%dt",stack[i]); } printf("n************************************n"); } }
3.
Output:
Download now