------------This function pops the element from the stack 1----------------------------------*/
| 38 | |
| 39 | /*------------This function pops the element from the stack 1----------------------------------*/ |
| 40 | int pop_1(){ |
| 41 | |
| 42 | if(top_1 >= 0) |
| 43 | return arr[top_1--]; |
| 44 | |
| 45 | else{ |
| 46 | cout << "Stack Underflow" << endl; |
| 47 | return -1; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /*-------------This function pops the element from the stack 2---------------------------------*/ |