In which context does the stack operates?
A. FIFO
B. LIFO
C. Both a & b
D. None of the mentioned
Answer:A
In which context does the stack operates?
A. FIFO B. LIFO C. Both a & b D. None of the mentioned
Explanation:A stack is a container where elements operate in a LIFO context, where elements are inserted (pushed) and removed (popped) from the end of the container.