Submit Search
Upload
Linear queue
•
1 like
•
69 views
Er. Ganesh Ram Suwal
Follow
Data Structure and Algorithm, Queue, Linear Queue
Read less
Read more
Engineering
Report
Share
Report
Share
1 of 3
Download now
Download to read offline
Recommended
Doubly Linked List
Doubly Linked List
Er. Ganesh Ram Suwal
Circular queue
Circular queue
Er. Ganesh Ram Suwal
STACK IMPLEMENTATION USING SINGLY LINKED LIST
STACK IMPLEMENTATION USING SINGLY LINKED LIST
Er. Ganesh Ram Suwal
Bubble Sort
Bubble Sort
Er. Ganesh Ram Suwal
งานPop pornapa
งานPop pornapa
Pw Mlp
Singly Linked List
Singly Linked List
Er. Ganesh Ram Suwal
Understanding the nodejs event loop
Understanding the nodejs event loop
Saurabh Kumar
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
Recommended
Doubly Linked List
Doubly Linked List
Er. Ganesh Ram Suwal
Circular queue
Circular queue
Er. Ganesh Ram Suwal
STACK IMPLEMENTATION USING SINGLY LINKED LIST
STACK IMPLEMENTATION USING SINGLY LINKED LIST
Er. Ganesh Ram Suwal
Bubble Sort
Bubble Sort
Er. Ganesh Ram Suwal
งานPop pornapa
งานPop pornapa
Pw Mlp
Singly Linked List
Singly Linked List
Er. Ganesh Ram Suwal
Understanding the nodejs event loop
Understanding the nodejs event loop
Saurabh Kumar
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
DATASTRUCTURES PPTS PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
What is recursion?
What is recursion?
AnuragSrivastava272
Thread介紹
Thread介紹
Jack Chen
array, function, pointer, pattern matching
array, function, pointer, pattern matching
Shakila Mahjabin
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
GeeksLab Odessa
Tic tac toe
Tic tac toe
jo pakson
Call stack, event loop and async programming
Call stack, event loop and async programming
Masters Academy
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
OdessaJS Conf
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
OdessaJS Conf
Groovy
Groovy
Pascal Nsue Engonga
サイ本 文
サイ本 文
Takashi Takizawa
NSOperation objective-c
NSOperation objective-c
Pavel Albitsky
Easily mockingdependenciesinc++ 2
Easily mockingdependenciesinc++ 2
drewz lin
Python sqlite3
Python sqlite3
Alexey Bovanenko
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
akaptur
Cooking pies with Celery
Cooking pies with Celery
Aleksandr Mokrov
Operation Flow @ ChicagoRoboto
Operation Flow @ ChicagoRoboto
Seyed Jafari
Operator Overloading
Operator Overloading
Mani Singh
ESCMAScript 6: Get Ready For The Future. Now
ESCMAScript 6: Get Ready For The Future. Now
Krzysztof Szafranek
Program(Output)
Program(Output)
princy75
Bytes in the Machine: Inside the CPython interpreter
Bytes in the Machine: Inside the CPython interpreter
akaptur
Stack Data Structure
Stack Data Structure
Er. Ganesh Ram Suwal
Go Says WAT?
Go Says WAT?
jonbodner
More Related Content
What's hot
What is recursion?
What is recursion?
AnuragSrivastava272
Thread介紹
Thread介紹
Jack Chen
array, function, pointer, pattern matching
array, function, pointer, pattern matching
Shakila Mahjabin
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
GeeksLab Odessa
Tic tac toe
Tic tac toe
jo pakson
Call stack, event loop and async programming
Call stack, event loop and async programming
Masters Academy
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
OdessaJS Conf
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
OdessaJS Conf
Groovy
Groovy
Pascal Nsue Engonga
サイ本 文
サイ本 文
Takashi Takizawa
NSOperation objective-c
NSOperation objective-c
Pavel Albitsky
Easily mockingdependenciesinc++ 2
Easily mockingdependenciesinc++ 2
drewz lin
Python sqlite3
Python sqlite3
Alexey Bovanenko
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
akaptur
Cooking pies with Celery
Cooking pies with Celery
Aleksandr Mokrov
Operation Flow @ ChicagoRoboto
Operation Flow @ ChicagoRoboto
Seyed Jafari
Operator Overloading
Operator Overloading
Mani Singh
ESCMAScript 6: Get Ready For The Future. Now
ESCMAScript 6: Get Ready For The Future. Now
Krzysztof Szafranek
Program(Output)
Program(Output)
princy75
Bytes in the Machine: Inside the CPython interpreter
Bytes in the Machine: Inside the CPython interpreter
akaptur
What's hot
(20)
What is recursion?
What is recursion?
Thread介紹
Thread介紹
array, function, pointer, pattern matching
array, function, pointer, pattern matching
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
JSLab. Домников Виталий. "ES6 генераторы и Koa.js"
Tic tac toe
Tic tac toe
Call stack, event loop and async programming
Call stack, event loop and async programming
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
Timur Shemsedinov "Пишу на колбеках, а что... (Асинхронное программирование)"
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
Yurii Shevtsov "V8 + libuv = Node.js. Under the hood"
Groovy
Groovy
サイ本 文
サイ本 文
NSOperation objective-c
NSOperation objective-c
Easily mockingdependenciesinc++ 2
Easily mockingdependenciesinc++ 2
Python sqlite3
Python sqlite3
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
"A 1,500 line (!!) switch statement powers your Python!" - Allison Kaptur, !!...
Cooking pies with Celery
Cooking pies with Celery
Operation Flow @ ChicagoRoboto
Operation Flow @ ChicagoRoboto
Operator Overloading
Operator Overloading
ESCMAScript 6: Get Ready For The Future. Now
ESCMAScript 6: Get Ready For The Future. Now
Program(Output)
Program(Output)
Bytes in the Machine: Inside the CPython interpreter
Bytes in the Machine: Inside the CPython interpreter
Similar to Linear queue
Stack Data Structure
Stack Data Structure
Er. Ganesh Ram Suwal
Go Says WAT?
Go Says WAT?
jonbodner
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
Adamq0DJonese
C aptitude questions
C aptitude questions
Srikanth
C - aptitude3
C - aptitude3
Srikanth
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Eleanor McHugh
Quiz using C++
Quiz using C++
Sushil Mishra
Here is the code- I can't get it to work- I need a function that finds.pdf
Here is the code- I can't get it to work- I need a function that finds.pdf
doshirajesh75
VTU DSA Lab Manual
VTU DSA Lab Manual
AkhilaaReddy
week-16x
week-16x
KITE www.kitecolleges.com
Assignment no39
Assignment no39
Jay Patel
Circular queue
Circular queue
ShobhaHiremath8
Lab 2 Histrogram generation Author Naga Kandasamy .docx
Lab 2 Histrogram generation Author Naga Kandasamy .docx
aryan532920
-- This is the shell-c Test- --shell -test sub #include -ctype-h- -- C.pdf
-- This is the shell-c Test- --shell -test sub #include -ctype-h- -- C.pdf
AdrianEBJKingr
week-15x
week-15x
KITE www.kitecolleges.com
operating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdf
aptcomputerzone
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
Supriya Radhakrishna
Linux kernel debugging
Linux kernel debugging
JungMinSEO5
Data structure new lab manual
Data structure new lab manual
SANTOSH RATH
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
aquazac
Similar to Linear queue
(20)
Stack Data Structure
Stack Data Structure
Go Says WAT?
Go Says WAT?
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
-- Task 2- Debugging a program with stacks- queues- and doubly-linked.docx
C aptitude questions
C aptitude questions
C - aptitude3
C - aptitude3
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Quiz using C++
Quiz using C++
Here is the code- I can't get it to work- I need a function that finds.pdf
Here is the code- I can't get it to work- I need a function that finds.pdf
VTU DSA Lab Manual
VTU DSA Lab Manual
week-16x
week-16x
Assignment no39
Assignment no39
Circular queue
Circular queue
Lab 2 Histrogram generation Author Naga Kandasamy .docx
Lab 2 Histrogram generation Author Naga Kandasamy .docx
-- This is the shell-c Test- --shell -test sub #include -ctype-h- -- C.pdf
-- This is the shell-c Test- --shell -test sub #include -ctype-h- -- C.pdf
week-15x
week-15x
operating system ubuntu,linux,MacProgram will work only if you g.pdf
operating system ubuntu,linux,MacProgram will work only if you g.pdf
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
Linux kernel debugging
Linux kernel debugging
Data structure new lab manual
Data structure new lab manual
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
operating system Linux,ubuntu,Mac#include stdio.h #include .pdf
Recently uploaded
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
me23b1001
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
ROCENODodongVILLACER
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
koyaldeepu123
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
RajaP95
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
hassan khalil
pipeline in computer architecture design
pipeline in computer architecture design
ssuser87fa0c1
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
Dr SOUNDIRARAJ N
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
João Esperancinha
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
britheesh05
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Mark Billinghurst
Effects of rheological properties on mixing
Effects of rheological properties on mixing
viprabot1
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
Chandu841456
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
C Sai Kiran
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
SAURABHKUMAR892774
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
VICTOR MAESTRE RAMIREZ
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting .
Satyam Kumar
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
Asst.prof M.Gokilavani
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Recently uploaded
(20)
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
EduAI - E learning Platform integrated with AI
EduAI - E learning Platform integrated with AI
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
pipeline in computer architecture design
pipeline in computer architecture design
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
Effects of rheological properties on mixing
Effects of rheological properties on mixing
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting .
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
Linear queue
1.
/* @author: Er.
Ganesh Ram Suwal*/ #include<stdio.h> #include<conio.h> #include<process.h> #define MAX 5 int QUEUE[MAX],i,data,front = -1, rear = -1; void enqueue(); void dequeue(); void display(); void main() { int choice; clrscr(); start: printf("n*********************************************************n"); printf(" Queue operation "); printf("n*********************************************************n"); printf("1:Enqueuen2:Dequeuen3:Displayn4:exitnEnter your choice:"); scanf("%d",&choice); switch(choice) { case 1:enqueue(); break; case 2:dequeue(); break; case 3:display(); break; case 4: exit(0); break; default: printf("n*********************************************************n"); printf("Invalid Choice"); printf("n*********************************************************n"); } goto start; } void enqueue() { if(rear == MAX-1) { printf("n*********************************************************n"); printf(" Queue overflow"); printf("n*********************************************************n"); }
2.
else { printf("Enter data :
"); scanf("%d",&data); if(front == -1) { front = 0; } rear = rear + 1; QUEUE[rear] = data; } } void dequeue() { printf("n*********************************************************n"); if(front == -1) { printf(" QUEUE UNDERFLOW"); } else { data = QUEUE[front]; if(rear == front) { rear = -1; front = -1; } else { front = front + 1; } printf("Dequeue element = %d",data); } printf("n*********************************************************n"); } void display() { printf("n*********************************************************n"); if(front == -1) { printf("No data in the queuen");
3.
printf("f = %d,
r=%d",front,rear); } else { for(i = front;i<=rear; i++) { printf("%d(f=%d,r=%d) ",QUEUE[i],front,rear); } } printf("n*********************************************************n"); }
Download now