Home » Interview » Technology

.What are Stacks? Give an example where they are useful.

Correct Answer: A Stack is a linear structure in which insertions and deletions are always made at one end ie the top - this is termed as last in, first out (LIFO) Stacks are useful when we need to check some syntex errors like missing parentheses

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion