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

Function main

11. Stack/ArrayImplementStack.cpp:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57int main()
58{
59 Stack s(5);
60 s.push(10);
61 s.push(20);
62 s.push(30);
63 cout<<s.pop()<<endl;
64 cout<<s.peek()<<endl;
65 s.push(15);
66 cout<<s.size()<<endl;
67 cout<<s.isempty();
68
69}

Callers

nothing calls this directly

Calls 5

pushMethod · 0.45
popMethod · 0.45
peekMethod · 0.45
sizeMethod · 0.45
isemptyMethod · 0.45

Tested by

no test coverage detected