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

Function Delete

Q-Queue/QueueUsingArray.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 queue[rear]=item;
13}}
14void Delete(){
15if((front==0 && rear==-1) || front==rear+1){ //Condition of Queue underflow
16 cout<<"Queue Underflow ";
17}
18else{ cout<<"Item deleted from queue is : "<< queue[front]<<endl;
19 front++;
20}
21
22}
23void Display(){int i;
24 if((front==0 && rear==-1) || front==rear+1)
25 { cout<<"Queue is empty"<<endl; }

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected