C
Memory, pointers, the stack and the heap, all the way to linked lists, hash tables and your own malloc.
7 free lessons.
38 lessons, 7 free
0 of 38 lessons done
C COMPLETE
You can now:
- Write, compile and debug C programs on your own
- Explain where every value lives: stack, heap or static memory
- Use pointers, structs, malloc, realloc and free without leaks
- Read and write files and parse text input
- Build linked lists, stacks, queues and hash tables
- Spot memory bugs and undefined behaviour before they bite
Practise
The course, unit by unit
Part 1: Foundations
1 unit, 7 lessons
Part 1: Foundations
1 unit, 7 lessons
Part 2: Core
1 unit, 11 lessons
Part 2: Core
1 unit, 11 lessons
-
Unit 2: Core
5 hr 35 minLocked
- C functions and the stack, locked
- C arrays in memory, locked
- C strings and char arrays, locked
- C pointers and addresses, locked
- Pass by value in C, locked
- C pointer arithmetic, locked
- C checkpoint: pointersCheckpoint, locked
- The C string library, locked
- Reading lines of input in C, locked
- C structs and padding, locked
- C checkpoint: text and structsCheckpoint, locked
- Build it: Reverse a string in place40 min, locked
Part 3: Deeper
2 units, 20 lessons
Part 3: Deeper
2 units, 20 lessons
-
Unit 3: Advanced
7 hr 55 minLocked
- C malloc, free and the heap, locked
- Growing memory with realloc in C, locked
- Memory ownership in C, locked
- Pointers to pointers in C, locked
- File input and output in C, locked
- C checkpoint: memoryCheckpoint, locked
- Debugging C programs, locked
- Linked lists in C, locked
- Stacks and queues in C, locked
- Hash tables in C, locked
- Function pointers in C, locked
- Undefined behaviour in C, locked
- C with an AI assistant, locked
- C bug huntBug hunt, locked
- C final challengeFinal challenge, locked
- Build it: Write your own malloc4 hours, locked
More to build 4
-
Unit 4: Bits and a tiny machine
2 hr 20 minLocked
Projects
Lessons teach one idea at a time. Projects glue them together: a brief, a few milestones and a starter file.
Questions
What is the course about?
How computers work. Memory, pointers, the stack and the heap, all the way to linked lists, hash tables and your own malloc. The language under your operating system. It is for: some coding helps.
What is free?
7 of the 38 lessons.
Do I need to install anything?
No. Your code runs in the browser, in the editor beside each lesson.
Do I need an account?
No. Progress saves in this browser; sign in to keep it on every device.
What can I do by the end?
- Write, compile and debug C programs on your own
- Explain where every value lives: stack, heap or static memory
- Use pointers, structs, malloc, realloc and free without leaks
- Read and write files and parse text input
- Build linked lists, stacks, queues and hash tables
- Spot memory bugs and undefined behaviour before they bite
How long does it take?
About 18 hr 50 min of lessons in 4 units. Lessons take 20 to 45 minutes each.