When we delete the element from the top of the stack then it is known as pop operation.
stack[maxSize] is the stack.
item is the element to be deleted.
Algorithm given below deletes element from the top of the stack.
Repeat steps 2 to 4 for if condition top >= 0
set item = stack[top];
set top = top - 1;
Delete item and print item
Else print "Stack underflow"
Stack Pop using C
//delete item from stack
item = stack[top];
top = top - 1;
printf("Deleted item is %d", item);
printf("Stack is empty");