C is a programming language that works about as close to the computer as you can get. You'll find it everywhere performance matters — operating systems, embedded devices, game engines, database engines, compilers, and other performance-critical systems. This tutorial walks you through C from the very beginning, one step at a time, and explains why code is written the way it is so it actually makes sense as you go.
What you'll learn
Syntax, Variables, Data Types, Operators, Control Flow, Arrays, Strings, Functions, Pointers, Structs, Unions, Enums.
How to study this
Read a lesson, then actually run the code. Don't just look at the output — think about how the variable values change along the way.
You can pick a lesson from the menu on the left and work through it. Early lessons may look easy, but in C, forgetting even a single semicolon is enough to make the compiler upset — so write carefully.
The point of this page isn't just to give you code snippets to copy. It's to help you see what each line actually does, why that particular syntax is used, and where it would come in handy in a real project.
Info
Get a solid handle on C, and the core logic will carry over when you pick up languages like C++, Java, JavaScript, PHP, Go, or Rust.