Step 1: IF TOP = NULL PRINT UNDERFLOW [END OF IF] Step 2: SET ITEM = STACK[TOP] Step 3: SET TOP = TOP-1 Step 4: END
The function of Pop operation is given as :
void pop( ) { int item ; if (top >= 0) { item = stack [top] ; top = top - 1 ; printf ("No deleted is = %d", item) } else printf ("Stack is empty") ; }