codeintuition-logo

Overview of supported operations


Now that we know the different properties and components of the stack data structure, we can explore its support for operations, which store and retrieve data from the stack.

Push

The push operation on a stack is the only way to add data to a stack. This operation adds a data item to the top of the stack and increases its size by 1.

Liking the course? Check our discounted plans to continue learning.