Concept Flow - Pop Operation on Stack
Check if stack is empty
No
Remove top element
Update top pointer
Return popped element
Done
Yes
Stack Underflow - Cannot pop
The pop operation first checks if the stack is empty. If not, it removes the top element, updates the top pointer, and returns the popped element. If empty, it reports underflow.
