C / Beginner · Free public pilot
Learn C in 7 Days
Build a foundation and a working study-session report. Read, predict, run, change and explain each program.
Start your first lesson →Start from zero. Take your own time.
No prior programming, account or installation required. Allow about two hours per day including practice for Days 1–4, and closer to two and a half for Days 5–7, where pointers, input and the project land; these are author estimates. The final review is extra. Split days across sessions freely. Seven days builds a foundation, not mastery.
All 30 lessons are open as a pilot. C17 compiles with real Clang in code-playpad. The first Run downloads about 30 MB, then caches the compiler. Input must be supplied before Run; this browser runtime offers stdin, stdout and stderr, not persistent files. Stop ends a long run.
Each day ends with independent practice. Hints offer an idea, then a first step, before a worked solution. Day 7 includes a downloadable project and optional local instructions. Completion is saved only in this browser. Return a few days later for the final review.
We use fixed-size storage and explicit bounds. Dynamic allocation is a later topic. C++ is a separate course, not the final days of this one.
Ready to manage dynamic storage? Continue with C intermediate →
Day 1 · About 120 minutes
Your First Compiled Programs
Print a study summary and explain integer division.
- Hello, C30 min · Read, predict and practice
- Names, Values and Types30 min · Read, predict and practice
- Arithmetic and Integer Division30 min · Read, predict and practice
- Checkpoint: A Daily Summary30 min · Independent checkpoint
Day 2 · About 120 minutes
Decisions and Repetition
Classify sessions and calculate totals with bounded loops.
- Choose with if30 min · Read, predict and practice
- Combine Conditions30 min · Read, predict and practice
- Count with Loops30 min · Read, predict and practice
- Checkpoint: Count Toward a Goal30 min · Independent checkpoint
Day 3 · About 120 minutes
Functions and Checks
Split calculations into functions and test boundary cases.
- Small Functions30 min · Read, predict and practice
- Copies and Local Scope30 min · Read, predict and practice
- Checks That Fail Loudly30 min · Read, predict and practice
- Checkpoint: A Tested Calculation30 min · Independent checkpoint
Day 4 · About 128 minutes
Arrays and Text
Summarize sessions and safely work with bounded labels.
- Several Values in an Array32 min · Read, predict and practice
- Pass an Array and Its Count32 min · Read, predict and practice
- Text Needs a Terminator32 min · Read, predict and practice
- Checkpoint: Summarize Sessions32 min · Independent checkpoint
Day 5 · About 138 minutes
Pointers and Records
Explain caller updates, lifetime and structured session data.
- Addresses and Pointers32 min · Read, predict and practice
- Update a Caller Safely42 min · Read, predict and practice
- Lifetime and Read-only Access32 min · Read, predict and practice
- Checkpoint: Records for Sessions32 min · Independent checkpoint
Day 6 · About 146 minutes
Input and Program Boundaries
Reject malformed input and organize several source files.
- Read a Bounded Line40 min · Read, predict and practice
- Validate Before Converting34 min · Read, predict and practice
- Respect Storage Capacity32 min · Read, predict and practice
- Checkpoint: Separate Source Files40 min · Independent checkpoint
Day 7 · About 150 minutes
Finish Your Study Report
Test, extend and run a complete program, then solve a fresh brief.
- The Study Report Brief25 min · Read, predict and practice
- Assemble the Report30 min · Read, predict and practice
- Test the Boundaries30 min · Read, predict and practice
- Extend It and Run Locally30 min · Read, predict and practice
- On Your Own: Reading Sessions35 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review