Question: Which of the following is a real-world application of a stack?
Options:
Correct Answer: Undo functionality in text editors
Solution:
Stacks are used in text editors to implement the undo functionality, allowing users to revert to previous states.