This is a simple C program that uses a stack data structure to manage student information, suitable for diploma-level projects. It demonstrates how stack operations like push, pop, peek, and display can be applied to real-world scenarios such as storing and managing student data.
- Stack-based storage (LIFO/FILO)
- Insert (
push) and remove (pop) student records - View top entry (
peek) or all records (display) - Search for a student by name
- Structure-based data storage
- Menu-driven interface
Each student record includes:
- Name
- Date of Birth
- Gender
- Family Income
- 10th Percentage
- Institute Name
- Branch Name
- Academic Year
- Total Fee
- Paid Fee
- Remaining Fee
push()– Add student data to the stackpop()– Remove the most recent entrypeek()– See the latest student without removingdisplay()– View all student dataisEmpty()– Check if the stack is emptyisFull()– Check if the stack is full
- Start
- Define a structure for student information
- Accept student details one by one using
push - Use a loop and
switchto offer options to the user:- Add (push) student
- Search student by name
- Exit the program
- Display appropriate messages if:
- Stack is full (Overflow)
- Stack is empty (Underflow)
- Student not found
- End
- Programming Language: C
- Concepts: Stack, Structures, Switch-case, Loops, Functions