English

Explain the following term: STACK - Computer Science 1

Advertisements
Advertisements

Question

Explain the following term:

STACK

Explain
Advertisements

Solution

  • A Stack is a linear data structure that follows the LIFO (Last-In, First-Out) principle, meaning the last element added is the first one to be removed.
  • It primarily uses two operations: Push (to add an item to the top) and Pop (to remove the top item). A common real-world example is a stack of plates.
shaalaa.com
  Is there an error in this question or solution?
2023-2024 (July) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×