Which of the following statements accurately describes the primary characteristic of a Stack data structure?
-
A
It allows direct access to any element using an index.
-
B
Elements are processed in a First-In, First-Out (FIFO) order.
-
C
Elements are inserted and removed from the same end, following a Last-In, First-Out (LIFO) principle.
-
D
It stores key-value pairs for efficient lookup.