Skip to content

A curated collection of C programming programs covering core concepts such as variables, conditionals, loops, arrays, functions, recursion, strings, pointers, structures, and basic problem-solving techniques.

License

Notifications You must be signed in to change notification settings

wasitkrish/C-Programming

Repository files navigation

Structured C programming practice covering core concepts, logic building, and problem solving


💻 C Programming Fundamentals

This repository contains my C programming practice work completed during the first semester of my B.Tech in Artificial Intelligence & Data Science program.

The project is organized topic-wise and focuses on building a strong foundation in procedural programming, problem solving, and logical thinking using the C language. Each folder represents a specific concept area practiced through multiple programs.


📌 Topics, Folders, and Programs Covered

📁 Arithmetic

  • multiple-arithmetic-operations.c – Performs multiple arithmetic operations
  • multiplication-table.c – Prints multiplication tables
  • sum-of-array.c – Computes sum of array elements
  • sum-of-matrix-elements.c – Calculates sum of matrix elements
  • sum-of-numbers.c – Sums a series of numbers
  • sum-of-two-numbers.c – Adds two numbers

(Compiled executables stored in Run)


📁 Arrays

  • array-pointer-address-demo.c – Demonstrates array addresses using pointers
  • array-sum-average.c – Computes sum and average of array elements
  • copy-array-elements.c – Copies elements from one array to another
  • count-duplicate-elements.c – Counts duplicate elements in an array
  • find-max-min-array.c – Finds maximum and minimum elements
  • search-element-in-array.c – Searches for an element in an array
  • sort-array-ascending.c – Sorts array in ascending order
  • sort-array-descending.c – Sorts array in descending order
  • sort-integer-array.c – Integer array sorting
  • sum-and-average-array.c – Calculates sum and average

(Compiled executables stored in Run)


📁 Conditionals

  • check-even-odd.c – Checks whether a number is even or odd
  • check-prime-number.c – Checks for prime numbers
  • count-even-odd-array.c – Counts even and odd elements in an array
  • greatest-of-three-numbers.c – Finds the greatest of three numbers
  • separate-even-odd-array.c – Separates even and odd elements
  • switch-subject-book.c – Switch-case based subject selection
  • vowel-check-using-switch.c – Vowel detection using switch

📁 Functions

  • basic-operations-using-functions.c – Arithmetic operations using functions
  • fibonacci-using-function.c – Fibonacci series using functions
  • reverse-array-using-function.c – Reverses an array using functions
  • sum-of-n-numbers-function.c – Sum of numbers using functions

📁 Loop & Patterns

  • fibonacci-iterative.c – Fibonacci series using loops
  • fibonacci-using-recursion.c – Fibonacci using recursion
  • loop-practice-temp.c – Loop practice programs
  • print-numbers-1-to-200.c – Prints numbers from 1 to 200
  • print-odd-number-pattern.c – Odd number pattern printing
  • pattern-special-case.c
  • pattern-temp-1.c
  • pattern-temp-2.c
  • pattern-temp-3.c
  • pattern-temp-4.c
  • pattern-temp-5.c
  • pattern-temp-6.c
  • pattern-temporary.c
  • pattern-trial-1.c
  • pattern-trial-2.c

📁 Recursion

  • factorial-iterative.c – Factorial using iteration
  • factorial-recursive-basic.c – Basic recursive factorial
  • factorial-recursive.c – Recursive factorial implementation
  • factorial-recursion-version2.c – Alternate recursive approach
  • factorial-using-function.c – Factorial using functions

📁 Strings

  • string-basics.c – Basic string handling
  • string-operations.c – Common string operations
  • sort-string-alphabetically.c – Alphabetical string sorting
  • sort-multiple-strings.c – Sorting multiple strings

📁 Structure Union

  • student-structure-basic.c – Basic structure handling
  • student-union-demo.c – Union demonstration
  • book-structure-handling.c – Book record handling using structures
  • time-format-structure.c – Time format using structures

📁 Real World

  • electricity-bill-calculation.c – Electricity bill calculation system
  • restaurant-order-system.c – Console-based restaurant ordering system

📄 Additional Material

  • TeamLaligurans.pdf – Reference / supporting document

⚙️ How to Run

Requirements

  • GCC compiler (or any C compiler)
  • Windows / Linux / macOS

Steps

  1. Navigate to the desired folder
  2. Compile the program: gcc filename.c -o output
  3. Run the executable: ./output

(Precompiled .exe files are available in Run folders for Windows.)


🧠 Key Concepts Learned

  • C syntax and control flow
  • Arrays, strings, pointers
  • Functions and recursion
  • Structures and unions
  • Pattern printing and logic building
  • Real-world problem modeling
  • Debugging and program organization

🎓 Course Context

This work was completed as part of the Programming in C coursework during the first semester of the B.Tech AI & Data Science curriculum, with emphasis on building strong programming fundamentals.


📜 License

MIT License

Copyright (c) 2026
Krish Singh
https://github.com/wasitkrish

About

A curated collection of C programming programs covering core concepts such as variables, conditionals, loops, arrays, functions, recursion, strings, pointers, structures, and basic problem-solving techniques.

Topics

Resources

License

Stars

Watchers

Forks

Languages