Description
This project contains a simple C program (stack.c) implementing a stack using an array. It supports push, pop, display operations, and demonstrates overflow and underflow conditions.
Files in this repository
stack.c– source code for the stack operationsoutput.txt– sample output from running the programscreenshot.png– screenshot of the code and output togetherREADME.md– this file
How to compile and run
gcc stack.c -o stack
./stack