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

Function Delete

Q-Queue/CircularQueueUsingArray.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 }
19}
20void Delete(){ if(front==-1 && rear==-1){cout<<"Circular Queue Underflow"<<endl;} //Condition of Circular Queue Underflow
21 else if(front==rear){
22 cout<<"Item deleted from Circular queue is : "<< queue[front]<<endl;
23 front=rear=-1;
24 }
25 else{ cout<<"Item deleted from Circular queue is : "<< queue[front]<<endl;
26front=(front+1)%n;
27
28 }
29
30}
31
32void Display(){int i;
33if(front==-1 && rear==-1)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected