Skip to content

Repository files navigation

🚀 C Programming Learning Repository

A comprehensive collection of C programming concepts, exercises, and projects organized for systematic learning.

📁 Repository Structure

C/
├── .github/                 # GitHub configuration
│   └── copilot-instructions.md
├── .vscode/                 # VS Code settings
├── 01_Basics/              # Fundamental C concepts
├── 02_InputOutput/         # Input/Output operations
├── 03_Operators/           # Arithmetic, logical, relational operators
├── 04_ControlFlow/         # if-else, loops, decision making
├── 05_Arrays/              # Array operations and examples
├── 06_Assignments/         # Homework and assignments
├── 07_LabWorks/            # Laboratory exercises
├── 08_ClassWorks/          # Class practice sessions
├── 09_Projects/            # Complete projects and applications
└── Archive/                # Miscellaneous and archived files

🎯 Learning Path

1. Basics (01_Basics/)

  • Hello World program
  • Comments and documentation
  • Variables and constants
  • Data types and memory

2. Input/Output (02_InputOutput/)

  • printf() and scanf() functions
  • Escape sequences
  • Formatted input/output

3. Operators (03_Operators/)

  • Arithmetic operators (+, -, *, /, %)
  • Relational operators (==, !=, <, >, <=, >=)
  • Logical operators (&&, ||, !)
  • Precedence and associativity

4. Control Flow (04_ControlFlow/)

  • if-else statements
  • Nested conditions
  • Decision making structures

5. Arrays (05_Arrays/)

  • 1D array operations
  • Array traversal and manipulation
  • Common array algorithms

6. Practical Work

  • Assignments (06_Assignments/): Comprehensive if-else scenarios with documentation
  • Lab Work (07_LabWorks/): Practical exercises and calculations
  • Class Work (08_ClassWorks/): In-class practice sessions
  • Projects (09_Projects/): Complete applications like MathPlayground

🌟 Special Features

If-Else Scenario Documentation

The assignments folder contains detailed documentation for each programming problem:

  • Real-world scenarios
  • Flowcharts (Mermaid diagrams)
  • Step-by-step algorithms
  • Pseudocode
  • Test cases with expected outputs

Build System

  • VS Code Integration: Pre-configured tasks for building C files
  • MinGW GCC: Uses MinGW compiler for Windows
  • One-click Build: Build active file with Ctrl+Shift+P → "Tasks: Run Build Task"

🛠️ Setup Instructions

  1. Prerequisites:

    • VS Code
    • MinGW GCC compiler
    • C/C++ extension for VS Code
  2. Building Programs:

    • Open any .c file
    • Press Ctrl+Shift+P
    • Select "Tasks: Run Build Task"
    • Or use the pre-configured build task
  3. Running Programs:

    • After building, run the generated .exe file
    • Or use VS Code's integrated terminal

📋 Code Examples

Hello World

#include <stdio.h>
int main() {
    printf("Hello, World!");
    return 0;
}

If-Else Example

#include <stdio.h>
int main() {
    int number;
    printf("Enter a number: ");
    scanf("%d", &number);
    
    if (number % 2 == 0) {
        printf("Even");
    } else {
        printf("Odd");
    }
    return 0;
}

🎓 Learning Resources

  • Comprehensive Documentation: Each major concept includes detailed explanations
  • Real-world Scenarios: Problems are based on practical applications
  • Progressive Difficulty: Concepts build upon each other systematically
  • Visual Learning: Flowcharts and diagrams for better understanding

📝 Contributing

Feel free to contribute by:

  • Adding more programming examples
  • Improving documentation
  • Fixing bugs or typos
  • Suggesting better organization

📄 License

This repository is for educational purposes. Feel free to use and modify for learning.


Happy Coding! 💻

About

Comprehensive C programming learning repository

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages