-------------This function pops the element from the stack 2---------------------------------*/
| 51 | |
| 52 | /*-------------This function pops the element from the stack 2---------------------------------*/ |
| 53 | int 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---------------------------------*/ |