Home » C++ Programming » Questions and Answers » Question
  1. In which context does the stack operates?
    1. Random
    2. FIFO
    3. LIFO
    4. Both FIFO & LIFO
    5. None of these
Correct Option: C

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.



Your comments will be displayed only after manual approval.