Write code in C for Circular Queue through Array?
Data Structure > Queue Data Structure > Circular Queue
Long Question
528
Answer:
#include #include # define MAXSIZE 200 int queue[MAXSIZE]; int front=-1, rear=-1; //index pointing to the top of stack void main() { void enqueue(int); int dequeue(); int will=1,i,num,ch; while(will ==1) { printf("MAIN MENU: 1. Enqueue 2.Dequeue 3. Check Queue Full 4. Check Queue Empty "); Scanf ("%d", &ch); switch(ch) { case 1: printf("Enter the data to add... "); scanf("%d", &num); enqueue(num); break; case 2: num=dequeue(); if(num= = -1) printf(
This Particular section is dedicated to Question & Answer only. If you want learn more about Data Structure. Then you can visit below links to get more depth on this subject.
# C Tutorials # JAVA Tutorials # HTML Tutorials # Computer Fundamental # Data Structure # DBMS Tutorials SQL # C# Language # R Language # PHP # Python # Vue JS
Join Our telegram group to ask Questions
Click below button to join our groups.