MCPcopy Create free account
hub / github.com/SR-Sunny-Raj/Hacktoberfest2021-DSA / pop

Method pop

11. Stack/Stack Using Array.cpp:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 }
55 }
56 void pop()
57 {
58 if(this->size == 0)
59 {
60 cout<<"The Stack is Empty"<<endl;
61 return;
62 }
63 else
64 {
65 for(int i=0;i<size;i++)
66 this->a[i] = this->a[i+1] ;
67 size-- ;
68 return ;
69 }
70 }
71};
72int main()
73{

Callers 15

mainMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
walkMethod · 0.95
kosarajuMethod · 0.95
topologicalSortMethod · 0.95
reversMethod · 0.95
minAddToMakeValidMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected