Stack-Based Calculator in C

Stack-Based Calculator in C

This project is a console-based calculator developed in C, designed to demonstrate the use of stack data structures (Last-In-First-Out) in a practical context. It allows users to perform basic arithmetic operations and manage a history of calculations through stack operations.

Main menu

Operations history

Key Features:

  • Perform basic arithmetic operations: addition, subtraction, multiplication, and division
  • Stores each operation and result in a fixed-size stack
  • Undo the last operation using a pop mechanism
  • View the complete operation history
  • Reset the calculator by clearing the stack

The calculator uses a custom-defined stack implemented with structures and arrays, handling operations through a text-based menu interface.

GitHub Page
Contact me!
LinkedInBehance