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

Function Display

Q-Queue/QueueUsingLinkedList.cpp:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void Display(){
46 struct node *temp=front;
47 if ((front == NULL) && (rear == NULL)) {
48 cout<<"Queue is empty"<<endl;
49 return;
50 }
51
52cout<<"Items present in the queue are: ";
53 while(temp!= NULL){
54 cout<<temp->data<<" ";
55 temp=temp->next;
56 }
57 cout<<endl;
58}
59
60
61int main(){

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected