1.

In which context does the stack operates?(a) FIFO(b) LIFO(c) Both FIFO & LIFO(d) LIFI

Answer» Right choice is (b) LIFO

Easiest 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.


Discussion

No Comment Found

Related InterviewSolutions