A beginner-friendly Hacktoberfest repository for practicing and contributing C programs from scratch to expert level.
Sharpen your C skills and start contributing today! 🚀
- 📌 About
- 📚 What You’ll Find Here
- 🛠 Usage / Running the Code
- 📝 Contribution Guide (MANDATORY)
- 📁 Folder Structure
- 🎃 Hacktoberfest Rules
- 👨💻 Maintainers
- 📢 Support
- 📄 License
This repository contains a structured collection of C language programs, ranging from beginner-level syntax to advanced data structures and algorithms.
Whether you're:
- just starting out with C 💻
- preparing for interviews 🎯
- or contributing for Hacktoberfest 🧡
This repo has something for you.
🧠 Organized by topic, this repo includes:
- ✅ Basic Programs (Hello World, Variables, Operators)
- ✅ Conditional Statements (
if
,switch
) - ✅ Loops (
for
,while
,do-while
) - ✅ Functions & Recursion
- ✅ Arrays & Strings
- ✅ Pointers & Memory Allocation
- ✅ Structures & Unions
- ✅ File Handling
- ✅ Sorting & Searching Algorithms
- ✅ Data Structures (Linked Lists, Stacks, Queues, Trees)
- ✅ Miscellaneous Logic Building Challenges
You can test or learn from any .c
file using your favorite C compiler like GCC.
- Clone the repo:
git clone https://github.com/SahilKumarIN/C-Programs-Basics-to-Advanced.git
cd C-Programs-Basics-to-Advanced
- Navigate to a topic folder (e.g., Loops):
cd Loops/
- Compile the code using GCC:
gcc filename.c -o output
- Run the compiled program:
./output
📌 Example:
cd Loops/
gcc for_loop_example.c -o for_loop_example
./for_loop_example
We welcome your contributions — and this project is Hacktoberfest-ready! 🎉
- Fork the repository.
- Clone your fork:
git clone https://github.com/SahilKumarIN/C-Programs-Basics-to-Advanced.git
- Create a new branch:
git checkout -b add-my-program
- Add your
.c
file to the appropriate folder. - Edit
CONTRIBUTION.md
(MANDATORY):- Add your name
- Program title
- Folder + file name
- Commit and push your changes:
git add .
git commit -m "Add: program name under topic folder"
git push origin add-my-program
- Open a Pull Request from your branch to the
main
branch.
⚠️ PRs without updatingCONTRIBUTION.md
will be marked invalid for Hacktoberfest.
C-Programs-Basics-to-Advanced/
│
├── Basic/
├── Conditionals/
├── Loops/
├── Functions/
├── Arrays/
├── Strings/
├── Pointers/
├── Structures/
├── FileHandling/
├── Algorithms/
├── DataStructures/
│
├── CONTRIBUTION.md <-- 🔥 MUST edit when contributing!
├── README.md
└── LICENSE
✅ This repo is officially participating in Hacktoberfest 2025.
🧾 Make 4 valid PRs between October 1–31 to earn swag or plant trees.
🚫 Spammy/incomplete PRs will be marked as invalid
.
📋 Official rules: https://hacktoberfest.com
Repo Maintained By
Sahil Kumar
Feel free to open an issue or contact for suggestions or co-maintaining.
If you find this project useful or inspiring:
- 🌟 Star this repo
- 🍴 Fork and contribute
- 🧑🤝🧑 Share with your friends
- 📲 Post it on social media
Together, we grow. 🌱
This project is licensed under the MIT License.
See the LICENSE file for full details.