C Programming Fundamentals
Learn the foundational systems language that powers operating systems, compilers, and embedded firmware. Master types, functions, arrays, pointers, structs, and dynamic memory.
What you'll build & master
- ✓ Compile and run clean C11 programs with strict compiler warnings
- ✓ Work confidently with primitive types, format specifiers, and control flow
- ✓ Manipulate fixed arrays and null-terminated C strings safely
- ✓ Understand memory addresses, pointers, and pass-by-reference patterns
- ✓ Design structs and manage heap memory cleanly with malloc and free
Course Syllabus
C Foundations
Memory & Data
- 19 min
Arrays & Null-Terminated Strings
Work with contiguous fixed-size arrays, compute array lengths with sizeof, and handle C strings ending in '\0'.
- 210 min
Pointers & Memory Addresses
Demystify pointers using the address-of operator (&) and dereference operator (*) to mutate data in place.
- 39 min
Structs, typedef & Heap Memory (malloc/free)
Group related fields into custom structs, access fields via ->, and allocate dynamic heap memory safely.
Systems Programming
- 19 min
Pointer Arithmetic & Const Correctness
Traverse contiguous arrays using pointer increments and understand const int *p vs. int *const p.
- 28 min
Enums, Unions & Bitwise Flags
Represent finite states cleanly with enums and pack multiple boolean options into one integer using bitwise masks.
- 38 min
File I/O & Safe Error Handling
Open, write, read, and close files with fopen/fprintf/fgets/fclose, and handle errors cleanly with errno and return codes.
Modular C
- 18 min
Headers, Include Guards & Preprocessor
Split C programs across .h headers and .c implementation files cleanly using #ifndef include guards and safe macros.
- 29 min
Function Pointers & Callbacks (qsort)
Pass functions as arguments in C to build flexible callbacks and sort any array type using stdlib's qsort().
- 39 min
Dynamic Arrays & realloc
Build a growable dynamic array in C using capacity doubling, realloc(), and leak-free cleanup.