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

Function pop_2

S-Stack/twoStackArray.cpp:53–62  ·  view source on GitHub ↗

-------------This function pops the element from the stack 2---------------------------------*/

Source from the content-addressed store, hash-verified

51
52/*-------------This function pops the element from the stack 2---------------------------------*/
53int pop_2(){
54
55 if(top_2 < SIZE)
56 return arr[top_2++];
57
58 else{
59 cout << "Stack underflow" << endl;
60 return -1;
61 }
62}
63
64
65/*------------This function displys the contents of stack 1---------------------------------*/

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected