Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
120 views

C Program To Implement A Queue Implementation Using Linked List

This document provides a C program to implement a queue using a linked list data structure. The program defines a node structure with an info field to store data and a next pointer. It also declares front and rear pointers to track the head and tail of the queue. Functions are included to enqueue new elements to the rear, dequeue elements from the front, and display the current queue. The main function initializes the queue pointers and provides a menu to allow the user to insert, delete, or display elements in the queue using the linked list implementation.

Uploaded by

Sachin Puri
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

C Program To Implement A Queue Implementation Using Linked List

This document provides a C program to implement a queue using a linked list data structure. The program defines a node structure with an info field to store data and a next pointer. It also declares front and rear pointers to track the head and tail of the queue. Functions are included to enqueue new elements to the rear, dequeue elements from the front, and display the current queue. The main function initializes the queue pointers and provides a menu to allow the user to insert, delete, or display elements in the queue using the linked list implementation.

Uploaded by

Sachin Puri
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

C program to implement a Queue Implementation using Linked List

http://sourcecode4u.com/categories/data-structures/98-queue-using-lin...

Monday, 24 December 2012

Search

List all programs

Home

About Us
know more about us

Resources
c prog tools

1 of 5

12/24/2012 5:18 PM

C program to implement a Queue Implementation using Linked List

http://sourcecode4u.com/categories/data-structures/98-queue-using-lin...

Sourcecode4u on Facebook
Like 562

Searching for queue linked list? 1. Looking for Queue Linked list?
Top answers for Queue Linked list
www.InternetCorkBoard.com

2. Searching for Queue Linked


Top answers for Queue Linked
www.Answered-Questions.com

Get a email if any new program is posted. Enter your Email ID:

C program to implement a Queue Implem

Written by siddhartha. Posted in

Sister Sites

Searching for queue linked list? 1. Looking for Queue Linked list?
Top answers for Queue Linked list

www.InternetC

2. Searching for Queue Linked list?


Top answers for Queue Linked list

www.Answered-

3. Queue Linked list near you


Get local answers for Queue Linked list

www.Answered-

Login Form
User your Gmail Email and Password to login with out registration. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Tweet 2

User Name

Password

Remember Me

/********************************************************** /* C program to implement a Queue Implementation using Lin /* Download more programs at /********************************************************** #include<stdio.h> #include<malloc.h> struct node { int info; struct node *next; } *front, *rear; void enqueue(int elt); int dequeue(); void display(); void main() { int ch, elt; rear = NULL; front = NULL; while (1) { printf("************ Menu ***************"); printf("\nEnter:\n1->Insert\n2->Delete\n3->Display\ printf("Enter your choice :: "); scanf("%d", &ch); switch (ch) {

2 of 5

12/24/2012 5:18 PM

C program to implement a Queue Implementation using Linked List

http://sourcecode4u.com/categories/data-structures/98-queue-using-lin...

All right reserved by sourcecode4u.com

3 of 5

12/24/2012 5:18 PM

C program to implement a Queue Implementation using Linked List

http://sourcecode4u.com/categories/data-structures/98-queue-using-lin...

4 of 5

12/24/2012 5:18 PM

C program to implement a Queue Implementation using Linked List

http://sourcecode4u.com/categories/data-structures/98-queue-using-lin...

5 of 5

12/24/2012 5:18 PM

You might also like