Let's say stack is implemented as Link List, then what will pop() function will return to the calling function?
The popped element or the what, because while popping at the end we are freeing up the space in which TOS element is present whic needs to be popped!