Skip to content
/ C Public

⚙️ C Programming Projects This repository contains a collection of C programs ranging from basic syntax and logic building to advanced data structures and algorithm implementations. It's designed as a learning resource for students, beginners, and anyone looking to strengthen their understanding of the C programming language.

Notifications You must be signed in to change notification settings

Vortex-16/C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👨🏼‍💻 Comprehensive C Programming Repository

A complete collection of C programming code covering beginner to advanced concepts, data structures, and algorithms. This repository contains practical examples, exercises, and projects developed for learning and mastering C programming.

📚 Repository Overview

This repository is organized into multiple learning paths and projects, each focusing on different aspects of C programming:

Directory Purpose Topics
CodeWithHarry(C) Harry's C Course Exercises Chapters 1-11, practical exercises, file I/O, memory management
Vikash(C) Personal Learning Journey Exam codes, intermediate algorithms, OS scripts, system programs
DSA Data Structures & Algorithms Array ADT, insertion, deletion operations
DSA(STCET) DSA with Menu-Driven Programs Insertion, deletion, linked lists, matrix operations

📁 Directory Structure & Content

1. CodeWithHarry(C)/ - Harry's Complete C Course

Systematic learning materials from CodeWithHarry C programming course with chapter-wise organization.

Chapter Structure:

  • CH1Prac - Basic Programs

    • circle.c - Calculate circle area and circumference
    • rectangle.c - Rectangle area and perimeter
    • si.c - Simple Interest calculation
    • temp.c - Temperature conversion
    • volume.c - Volume calculations
  • CH2Prac - Operators & Data Types

    • div.c - Division operations
    • eval.c - Expression evaluation
    • float.c - Floating-point operations
    • return.c - Function return types
    • Wrong.c - Common mistakes
  • CH3Prac - Conditional Statements (if-else, switch)

    • 11.c - Basic conditionals
    • great.c - Find greatest number
    • inco.c - Income tax calculation
    • lc.c - Lowercase conversion
    • leap.c - Leap year checker
    • passf.c - Pass/fail grading
    • rank.c - Rank determination
  • CH4Prac - Loops (for, while, do-while)

    • fact.c - Factorial calculation
    • mulrev.c - Multiplication table reversed
    • mulsum.c - Sum of digits
    • mult.c - Multiplication table
    • prime.c - Prime number checker
    • rep8.c - Repeat 8 times
    • sum.c - Sum calculations
    • sumdw.c - Sum of digits while
    • sumw.c - Sum with while loop
  • CH5Prac - Functions & Recursion

    • avg.c - Average calculation
    • fibo.c - Fibonacci series
    • force.c - Force calculation
    • pattern.c - Pattern generation
    • quick.c - Quick sort implementation
    • sum.c - Sum function
    • temp.c - Temperature conversion function
  • CH6Prac - Pointers

    • address.c - Address operations
    • noppointer.c - Non-pointer operations
    • pass.c - Pass by reference
    • pbref.c - Pointer by reference
    • ptop.c - Pointer to pointer
    • s&avg.c - Sum and average with pointers
    • tentime.c - Ten times multiplication
  • CH7Prac - Arrays & 2D Arrays

    • 2d.c - 2D array operations
    • mul.c - Matrix multiplication
    • mul2.c - Another multiplication approach
    • mul3.c - Third multiplication variant
    • pos.c - Position finding
    • ptr.c - Pointer with arrays
    • rev.c - Array reversal
    • threed.c - 3D array operations
  • CH8Prac - Strings & Character Arrays

    • count.c - Count characters
    • cpy.c - String copy
    • encrypt.c - String encryption
    • find.c - Find substring
    • slice.c - String slicing
    • str.c - String operations
    • string.c - Advanced string handling
  • CH9Prac - Structures

    • userinfo.c - User information structure
  • CH10 & CH10Prac - File Handling

    • read.c - Reading from files
    • write.c - Writing to files
    • file.c - Basic file operations
    • fget.c - File get operations
    • Sample files: vikash.txt, table.txt
  • CH11 - Dynamic Memory Allocation

    • calc.c - Dynamic calculations
    • dma.c - Dynamic memory allocation
    • float.c - Float DMA
    • free.c - Memory freeing
    • reall.c - Memory reallocation

Projects:

  • Project1 - Random number generator
  • Project2 - Main project implementation

2. Vikash(C)/ - Personal Learning Collection

Personal practice codes and real-world implementations.

  • Welcome.c - Welcome program

Exam/ - Practical Exam Codes

Complete solutions for exam programs:

  • calculator.c - Basic calculator
  • concat.c - String concatenation
  • evenOdd.c - Even/odd checker
  • fact.c - Factorial
  • leap.c - Leap year checker
  • pointerAddress.c - Pointer address operations
  • pointerValue.c - Pointer value operations
  • stringCopy.c - String copy operations
  • vowConst.c - Vowel and consonant counter
  • greatestIn3.c, sum.c, div3&7.c, etc.

IntermediateCodes/ - Algorithms & Data Structures

Core algorithms and data structure implementations:

  • Sorting: bubble.c, quicksort.c, mergesort.c, insertiton.c, selectionSort.c
  • Searching: linearSearch.c
  • Conversions: CelToFer.c (Celsius to Fahrenheit)
  • Structures: struct.c, tri.c (triangle)
  • Other: marks.c, couplesChat.c, co_ordinates.c

Advanced/ - Advanced Concepts

  • notepad.c - Notepad application
  • notePadGUI.c - Notepad with GUI

OS/ - Operating System Scripts & Programs

Shell scripts and C programs for system operations:

  • Shell Scripts (.sh files):
    • HelloWorld.sh - Basic script
    • fileChecker.sh - Check file existence
    • directoryChecker.sh - Check directory existence
    • filePermissionChecker.sh - Check file permissions
    • oddEven.sh - Odd/even checker
    • pallindrome.sh - Palindrome checker
    • menuDriven.sh - Menu-driven script
    • systemInfo.sh - System information display
    • fileCounter.sh - Count files
    • backupFile.sh - Backup files
  • C Programs:
    • pallindrome(c).c - Palindrome in C
    • ai.c - AI-related program

System/ - System-level Programs

Advanced system programming and utilities.


3. DSA/ - Data Structures & Algorithms

Basic DSA implementations focusing on arrays:

  • adt.txt - Abstract Data Type documentation
  • arrayAdt.c - Array ADT implementation
  • arrayIns.c - Array insertion operations
  • arrayDel.c - Array deletion operations

4. DSA(STCET)/ - Menu-Driven DSA Programs

Practical implementations with user menus:

  • Menudrive(Insertion).c - Menu-driven insertion operations
  • MenuDriven(Deletion).c - Menu-driven deletion operations
  • MenuDriven(LinkedList).c - Complete linked list menu system
  • MenuDrivenMatrix.c - Matrix operations with menu

🎯 Learning Path

Beginner Level (CodeWithHarry CH1-CH3)

  • Basic input/output
  • Data types and operators
  • Conditional statements
  • Simple problem solving

Intermediate Level (CodeWithHarry CH4-CH8)

  • Loops and iterations
  • Functions and recursion
  • Pointers
  • Arrays and strings
  • String manipulation

Advanced Level (CodeWithHarry CH9-CH11)

  • Structures
  • File I/O operations
  • Dynamic memory allocation
  • Complex data structures

Algorithms & DSA (DSA, DSA(STCET))

  • Data structure implementations
  • Sorting algorithms
  • Searching algorithms
  • Linked lists
  • Matrix operations

Real-World Applications (Vikash(C))

  • Exam codes (practical implementations)
  • Intermediate algorithms
  • OS scripts and system programming
  • Advanced applications

💡 Key Topics Covered

Topic Files Difficulty
Basic I/O CH1Prac, Welcome.c Beginner
Operators & Expressions CH2Prac Beginner
Control Flow CH3Prac Beginner
Loops CH4Prac Beginner-Intermediate
Functions & Recursion CH5Prac Intermediate
Pointers CH6Prac, pointerValue.c Intermediate
Arrays CH7Prac Intermediate
Strings CH8Prac, stringCopy.c Intermediate
Structures CH9Prac, struct.c Intermediate
File Handling CH10, CH10Prac Intermediate
Memory Management CH11, dma.c Advanced
Sorting Algorithms IntermediateCodes/*.c Advanced
Linked Lists MenuDriven(LinkedList).c Advanced
Matrix Operations MenuDrivenMatrix.c Advanced

🚀 Getting Started

Compile and Run a Program

# Navigate to desired directory
cd CodeWithHarry(C)/CH1Prac

# Compile
gcc circle.c -o circle

# Run
./circle

Compile with Warnings

gcc -Wall -Wextra circle.c -o circle
./circle

Menu-Driven Programs

cd DSA(STCET)
gcc Menudrive(Insertion).c -o insertion
./insertion

📖 Format Specifiers Quick Reference

Format specifiers are essential for input/output operations in C:

Specifier Data Type Example Output
%d int printf("%d", 42); 42
%u unsigned int printf("%u", 42); 42
%f float/double printf("%.2f", 3.14159); 3.14
%c char printf("%c", 'A'); A
%s char* (string) printf("%s", "Hello"); Hello
%x int (hex) printf("%x", 255); ff
%o int (octal) printf("%o", 64); 100
%lf double printf("%lf", 3.14); 3.140000
%ld long printf("%ld", 1000L); 1000
%lld long long printf("%lld", 9223372036854775807LL); 9223372036854775807
%% percent printf("%%"); %

👨‍💻 Author

Vikash Gupta
Learning C programming through building, debugging, and sharing knowledge.


📝 License

This repository is open for educational purposes. Feel free to use, modify, and learn from these codes.


📌 Notes

  • Each program has been tested and includes sample inputs/outputs
  • Output directories contain compiled binaries and program outputs
  • Some programs use file I/O - ensure proper file paths before execution
  • For complex programs, read the code comments for better understanding

🎓 Learning Resources

  • CodeWithHarry - Original course reference for CH1-CH11 materials
  • STCET - Academic institution reference for DSA materials
  • Comments in code provide additional context and explanations

Last Updated: January 2026
Version: 2.0 - Complete Repository Documentation

About

⚙️ C Programming Projects This repository contains a collection of C programs ranging from basic syntax and logic building to advanced data structures and algorithm implementations. It's designed as a learning resource for students, beginners, and anyone looking to strengthen their understanding of the C programming language.

Resources

Stars

Watchers

Forks

Packages

No packages published