A comprehensive collection of C programming examples, ranging from basic syntax to advanced concepts like Dynamic Memory Allocation and File I/O. This repository serves as a personal learning journey and a reference guide for beginners.
This repository contains well-documented C programs covering the fundamental pillars of the language. It includes:
- Core Concepts: Loops, Functions, Pointers, and Arrays.
- Data Structures: Strings and Structures.
- Advanced Topics: Recursion, DMA (Dynamic Memory Allocation), and File Handling.
- Practice Sets: A series of problem sets (1–41) designed to reinforce logical thinking.
| Topic | Files |
|---|---|
| Operators | Increment_Operator.c, Ternary_Operator.c, Associativity_rule.c |
| Control Flow | If_Else, Switch_Operator.c, Break_Statement.c, Continue_Statement.c |
| Loops | While_Loop.c, Do_While_Loop.c, For_Loop.c |
| Category | Description |
|---|---|
| Pointers | Memory addressing, Pointer arithmetic, and Pointer-to-Pointer logic. |
| Arrays | Multidimensional arrays and passing arrays to functions. |
| Functions | Regular functions and recursive logic examples. |
| Memory & Files | Dynamic_Memory_Allocation.c and FILE_IO.c. |
The repository includes over 40 practice problems (Practice_Set_1.c through Problem_Set_41.c) that cover various mathematical and logical challenges, such as:
- Area calculations (Circle, Square).
- Swapping numbers.
- String reversal (with and without library functions).
- Array traversal and reversal.
To run these programs, you need a C compiler (like GCC) installed on your system.
- Clone the repository:
git clone https://github.com/codewithsayanjit/C-Language-Tutorial.git
- Navigate to the directory:
cd C-Language-Tutorial - Compile and run a specific file (e.g., Area of a Circle):
gcc Area_of_Circle.c -o Area_of_Circle ./Area_of_Circle
Sayanjit Jana
- GitHub: @codewithsayanjit
Feel free to star ⭐ this repository if you find it helpful!