codeintuition-logo

Key properties of a stack


Now that we know what a stack is and why it is such a useful data structure let's look at its different properties and useful components. These properties are modified when we add or remove data to or from the stack.

Capacity

A stack's capacity is the maximum number of data items it can hold. Only bounded stacks have a predefined capacity. Unbounded stacks ideally have an unlimited capacity restricted only by the amount of memory available on the system where the code executing the stack implementation is running.

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