Welcome to the C-Programming-Practice repository!
This repository contains a growing collection of C programming examples designed to help you learn, practice, and master the fundamentals of C through hands-on coding.
It is ideal for:
- Beginners starting their C programming journey
- Developers preparing for interviews or exams
- Anyone looking to build logical thinking through practical code challenges
- Input/Output
- Arithmetic operations
- Conditional statements (
if,else,switch) - Looping constructs (
for,while,do-while) - Pattern printing
- Arrays and strings
- Functions and recursion
- Simple CLI utilities (calculator, billing system, etc.)
Each program file is standalone and clearly named for easy navigation.
- Click the green
Codebutton at the top right. - Select
Download ZIP. - Extract it on your local machine.
git clone https://github.com/Amaan-Mujawar/C-Programming-Practice.gitYou’ll need a C compiler to compile and run the .c files. Follow the instructions based on your operating system.
- Option 1: Download and install Code::Blocks with MinGW compiler.
- Option 2: Install Turbo C++ (legacy interface).
- Option 3: Use MinGW-w64 via CMD or PowerShell.
sudo apt update
sudo apt install build-essentialTo compile:
gcc filename.c -o output
./outputInstall Xcode Command Line Tools:
xcode-select --installThen compile:
gcc filename.c -o output
./outputIf you prefer not to install anything, you can use these online C compilers: