The below operations can be performed on a stack −
push() − adds an item to stack
pop() − removes the top stack item
peek() − gives value of top item without removing it
isempty() − checks if stack is empty
isfull() − checks if stack is full
Your experience on this site will be improved by allowing cookies. Read Cookie Policy