A comprehensive collection of C programming concepts, exercises, and projects organized for systematic learning.
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
- Hello World program
- Comments and documentation
- Variables and constants
- Data types and memory
printf()andscanf()functions- Escape sequences
- Formatted input/output
- Arithmetic operators (+, -, *, /, %)
- Relational operators (==, !=, <, >, <=, >=)
- Logical operators (&&, ||, !)
- Precedence and associativity
- if-else statements
- Nested conditions
- Decision making structures
- 1D array operations
- Array traversal and manipulation
- Common array algorithms
- 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
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
- 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"
-
Prerequisites:
- VS Code
- MinGW GCC compiler
- C/C++ extension for VS Code
-
Building Programs:
- Open any
.cfile - Press
Ctrl+Shift+P - Select "Tasks: Run Build Task"
- Or use the pre-configured build task
- Open any
-
Running Programs:
- After building, run the generated
.exefile - Or use VS Code's integrated terminal
- After building, run the generated
#include <stdio.h>
int main() {
printf("Hello, World!");
return 0;
}#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;
}- 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
Feel free to contribute by:
- Adding more programming examples
- Improving documentation
- Fixing bugs or typos
- Suggesting better organization
This repository is for educational purposes. Feel free to use and modify for learning.
Happy Coding! 💻