Which data structure uses LIFO?
-
A
Queue
-
B
Stack
Correct answer
-
C
Linked List
-
D
Tree
16 views
Explanation
A Stack follows Last-In-First-Out (LIFO), where the last element added is the first removed.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ