Skip to content

SahilKumarIN/C-Programs-Basics-to-Advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎯 C Programs: From Basics to Advanced

Hacktoberfest Banner

A beginner-friendly Hacktoberfest repository for practicing and contributing C programs from scratch to expert level.
Sharpen your C skills and start contributing today! 🚀

PRs Welcome GitHub Issues Forks Stars Hacktoberfest 2025


📖 Table of Contents


📌 About

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.


📚 What You’ll Find Here

🧠 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

🛠 Usage / Running the Code

You can test or learn from any .c file using your favorite C compiler like GCC.

🧾 Step-by-Step

  1. Clone the repo:
git clone https://github.com/SahilKumarIN/C-Programs-Basics-to-Advanced.git
cd C-Programs-Basics-to-Advanced
  1. Navigate to a topic folder (e.g., Loops):
cd Loops/
  1. Compile the code using GCC:
gcc filename.c -o output
  1. Run the compiled program:
./output

📌 Example:

cd Loops/
gcc for_loop_example.c -o for_loop_example
./for_loop_example

📝 Contribution Guide (MANDATORY)

We welcome your contributions — and this project is Hacktoberfest-ready! 🎉

✅ Follow these steps:

  1. Fork the repository.
  2. Clone your fork:
git clone https://github.com/SahilKumarIN/C-Programs-Basics-to-Advanced.git
  1. Create a new branch:
git checkout -b add-my-program
  1. Add your .c file to the appropriate folder.
  2. Edit CONTRIBUTION.md (MANDATORY):
    • Add your name
    • Program title
    • Folder + file name
  3. Commit and push your changes:
git add .
git commit -m "Add: program name under topic folder"
git push origin add-my-program
  1. Open a Pull Request from your branch to the main branch.

⚠️ PRs without updating CONTRIBUTION.md will be marked invalid for Hacktoberfest.


📁 Folder Structure

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

🎃 Hacktoberfest Rules

✅ 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


👨‍💻 Maintainers

Repo Maintained By
Sahil Kumar

Feel free to open an issue or contact for suggestions or co-maintaining.


📢 Support

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. 🌱


📄 License

This project is licensed under the MIT License.
See the LICENSE file for full details.



Happy Coding & Happy Hacktoberfest 2025! 🎉

Releases

No releases published

Packages

No packages published

Contributors 7

Languages