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

Method pop

11. Stack/ArrayImplementStack.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 int pop()
29 {
30 if(top==-1)
31 {
32 cout<<"Stack empty"<<endl;
33 return INT_MIN;
34 }
35 int res= arr[top];
36 top--;
37 return res;
38 }
39
40 int size()
41 {

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected