About the course
C From The Ground Up is a free, progressive course in the C programming language. It starts with a program that prints one line and ends in systems programming: sockets, threads, a tiny shell, and a terminal text adventure you build yourself.
How it is made
Every lesson is a single, readable, runnable C program, and its comments are the lesson. The files in the repository are the only copy of the code: this site and the book edition are both generated from them, so what you read is always what compiles.
Every change is checked automatically. Each lesson must compile with no warnings under both Clang and GCC, and lessons that read input are fed good input, bad input and end-of-file to make sure they do not hang or crash.
Who it is for
Anyone who wants to understand how programs really work: complete beginners, programmers coming from higher-level languages, and students who want a second explanation. Each lesson only uses ideas that earlier lessons taught.
Privacy
There are no ads or trackers. Accounts are optional: without one, your browser remembers your progress, theme and preferred operating system tab on this device only. The privacy policy says exactly what an account stores.
Help and contributing
Found a mistake, or a comment that confused you? A wrong comment is a bug: please open an issue on GitHub. The source of the lessons, the book and this site is all in one repository.
License
Written by dunamismax and released under the MIT License. You may use, copy and adapt it, including for teaching.