Data Structures and Algorithms - Stack (Practical)
- Write a program in C to perform the following functions using a menu based system in stack - a. push b. pop c. peek d. display
Make this stack using a normal array in C and show the stack overflow and underflow situations 2. Perform the same operations for a stack with dynamic memory allocation. Handle the stack overflow with dynamic memory allocation.