Can someone please explain what this function does?

This is related to stack implementation....

1
2
3
4
5
  struct SE* pop_st () {
struct SE* e = top;
top = (top)? top->next: 0;
return e;
}.



Thanks
To pop a stack means that you remove the topmost element of the stack.
Topic archived. No new replies allowed.