explain push and pop functions in stacks
Answers
Answered by
0
Stack is a data structure that follows
LIFO
Last In First Out.
Top-> the index position were the insertion and deletion happens.
Push operation -> inserts the value to the top of stack
Pop Operation -> deletes or removes the value from the top of stack.
LIFO
Last In First Out.
Top-> the index position were the insertion and deletion happens.
Push operation -> inserts the value to the top of stack
Pop Operation -> deletes or removes the value from the top of stack.
Similar questions