C Tutorial
Learn C
C is a general-purpose programming language that has been widely used for over 50 years.
C is very powerful; it has been used to develop operating systems, databases, applications, etc.
Start learning C now »Examples in Each Chapter
Our "Try it Yourself" editor makes it easy to learn C. You can edit code and view the result in your browser:
C Exercises
Many chapters in this tutorial end with an exercise where you can check your level of knowledge.
What You'll Learn
This tutorial will guide you step by step, with examples and exercises along the way:
- How C programs are structured
- Variables, data types, and operators
- If statements, loops, and arrays
- Functions and how to reuse code
- Pointers and memory (explained in a beginner-friendly way)
- Structures to organize related data
- Reading from and writing to files
- Organizing programs and build real-life projects
What You Need
You don't need any programming experience to start. Just curiosity and:
- A computer and a web browser
- Optional: A C compiler (you can also use our "Try it Yourself" editor)
C Quiz
Check your understanding with a short quiz and see how well you know the basics of C.
Learn by Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.
C Reference
You will also find complete keyword and function references: