C programming: free course
The language behind operating systems, microcontrollers and embedded devices. Understand memory, pointers and how computers really work.
Start lesson 1 Open the interactive course Printable course notes
Lessons
- 1 C introduction: why C matters, where it's used, compiling, your first program, program structure, data types and printf
- 2 Variables, data types, printf and scanf
- 3 Conditions, loops and functions in C: if/else, switch, for, while, do-while, writing functions, scope and header files
- 4 Arrays and strings in C
- 5 Pointers and memory in C: addresses, dereferencing, pointers and functions, arrays, pointer arithmetic, malloc/free and common bugs
- 6 Dynamic memory: malloc, realloc and free
- 7 Structs and files in C: grouping data with struct, arrays of structs, pointers to structs, typedef, enums and reading/writing files
- 8 Project: a mini bank / SACCO account system in C