A comprehensive collection of C programming exercises and projects for learning and mastering the fundamentals of C language.
This repository documents my journey learning C programming from basics to advanced concepts. Each program is designed to strengthen core programming skills and problem-solving abilities.
c-programming/ ├── Loop Programs/ │ ├── 1to100.c - Print numbers 1 to 100 │ ├── APOdd.c - Arithmetic progression with odd numbers │ └── GP.c - Geometric progression ├── Basic Programs/ │ └── Fundamental C syntax and operations ├── Character Programs/ │ └── Character manipulation and string handling └── Array Programs/ └── Array operations and algorithms
gcc filename.c -o filename
./filename
Compile with warnings:
gcc -Wall -Wextra filename.c -o filename
./filename
Compile with debugging:
gcc -g filename.c -o filename
gdb ./filename
📖 Topics Covered
✅ Basic Syntax and Data Types
✅ Control Structures (if-else, switch)
✅ Loops (for, while, do-while)
✅ Functions and Recursion
✅ Arrays and Strings
✅ Pointers and Memory Management
✅ Structures and Unions
✅ File Handling
🎯 Learning Objectives
Master fundamental C programming concepts
Develop strong problem-solving skills
Write clean, efficient, and well-documented code
Understand memory management and pointers
Practice algorithmic thinking
💻 Development Environment
IDE: Visual Studio Code
Compiler: GCC (GNU Compiler Collection)
OS: Windows/Linux/macOS
Version Control: Git & GitHub
📝 Code Style
Following clean code principles:
Meaningful variable names
Proper indentation (4 spaces)
Comments for complex logic
Modular and reusable functions
🤝 Contributing
This is a personal learning repository, but suggestions and improvements are welcome!
📧 Contact
Feel free to reach out for collaboration or questions!
📄 License
This project is open source and available for educational purposes.
⭐ Happy Coding! ⭐
"The only way to learn a new programming language is by writing programs in it." - Dennis Ritchie