MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / Display

Function Display

Q-Queue/QueueUsingArray.cpp:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22}
23void Display(){int i;
24 if((front==0 && rear==-1) || front==rear+1)
25 { cout<<"Queue is empty"<<endl; }
26else{
27 cout<<"Items of the queue are : ";
28 for(i=front;i<=rear;i++)
29 {cout<<queue[i]<<" ";
30 cout<<endl;}
31}
32
33}
34int main(){
35 int choice;
36 cout<<"1. Insert an element to queue"<<endl;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected