What is Stack? Explain all operation of STACK
Answers
Answered by
7
Explanation:
A stack is a simple last-in, first-out (LIFO) data structure. ... So a stack supports two basic operations: push and pop. Some stacks also provide additional operations: size (the number of data elements currently on the stack) and peek (look at the top element without removing it). The primary stack operations.
Answered by
4
Answer:
A stack is a simple last-in, first-out (LIFO) data structure. ... So a stack supports two basic operations: push and pop. Some stacks also provide additional operations: size (the number of data elements currently on the stack) and peek (look at the top element without removing it). The primary stack operations.
Hope it helps you friend
pls follow kar do : )
Similar questions