Learn C, one concept at a time.
Clear explanations. Working examples. Exercises that make it click.
The complete C learning path
21 lessons · 4 modules · Learn at your own pace
Introduction to C
Meet C, understand how compiled programs work, and write your first program.
Structure of a C Program
Understand headers, main, declarations, statements, and comments.
Variables and Data Types
Store and represent values with integers, floating-point numbers, and characters.
Constants
Express fixed values with literals, const objects, and symbolic definitions.
Input and Output (printf, scanf)
Read standard input safely and display formatted program output.
Operators
Combine values with arithmetic, comparison, logical, and bitwise operators.
If / Else Conditions
Make decisions with conditions, branches, and validation.
Switch Case
Select among discrete alternatives with switch, case, and break.
For Loop
Repeat work with a controlled counter and clear bounds.
While Loop
Repeat while a condition holds, especially when the count is unknown.
Do-While Loop
Use a post-test loop when the body must execute at least once.
Functions
Break a program into reusable units with parameters and return values.
Arrays
Store ordered collections and traverse them without leaving their bounds.
Strings
Work with null-terminated character arrays and safe text input.
Pointers
Understand addresses, dereferencing, lifetimes, and pointer arithmetic.
Structures
Group related values into meaningful records.
Unions
Share storage between alternative representations with a tagged union.
Enumerations
Give meaningful names to integral states and choices.
File Handling
Open, read, write, and close streams with proper error handling.
Dynamic Memory Allocation
Allocate runtime-sized storage and release it safely.
Preprocessor Directives
Control inclusion, macros, and conditional compilation before the compiler runs.