PrakritiPatel / Contribute

1 stars 3 forks source link

added stack implementation to the repository #4

Closed Payoshni123 closed 1 month ago

Payoshni123 commented 1 month ago

The code implements a stack data structure using an array in C, supporting basic operations such as push (to add an element), pop (to remove the top element), and peek (to view the top element). It allows users to interact through a menu-driven interface to perform these operations. The stack has a maximum size defined by MAX, and appropriate messages are displayed for full or empty conditions.

PrakritiPatel commented 1 month ago

Hey @Payoshni123 , Thanks for contributing! Please give the repo a star.