Question
Computer Science Question on Stack
Stack works on the principle of ________.
A
Mid Element First
B
First In First Out
C
Last In First Out
D
Last In Last Out
Answer
Last In First Out
Explanation
Solution
A stack follows the LIFO (Last In First Out) principle, where the last element added is the first one removed.