Skip to content

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.

  1. Hello, C30 min · Read, predict and practice
  2. Names, Values and Types30 min · Read, predict and practice
  3. Arithmetic and Integer Division30 min · Read, predict and practice
  4. Checkpoint: A Daily Summary30 min · Independent checkpoint

Day 2 · About 120 minutes

Decisions and Repetition

Classify sessions and calculate totals with bounded loops.

  1. Choose with if30 min · Read, predict and practice
  2. Combine Conditions30 min · Read, predict and practice
  3. Count with Loops30 min · Read, predict and practice
  4. Checkpoint: Count Toward a Goal30 min · Independent checkpoint

Day 3 · About 120 minutes

Functions and Checks

Split calculations into functions and test boundary cases.

  1. Small Functions30 min · Read, predict and practice
  2. Copies and Local Scope30 min · Read, predict and practice
  3. Checks That Fail Loudly30 min · Read, predict and practice
  4. Checkpoint: A Tested Calculation30 min · Independent checkpoint

Day 4 · About 128 minutes

Arrays and Text

Summarize sessions and safely work with bounded labels.

  1. Several Values in an Array32 min · Read, predict and practice
  2. Pass an Array and Its Count32 min · Read, predict and practice
  3. Text Needs a Terminator32 min · Read, predict and practice
  4. Checkpoint: Summarize Sessions32 min · Independent checkpoint

Day 5 · About 138 minutes

Pointers and Records

Explain caller updates, lifetime and structured session data.

  1. Addresses and Pointers32 min · Read, predict and practice
  2. Update a Caller Safely42 min · Read, predict and practice
  3. Lifetime and Read-only Access32 min · Read, predict and practice
  4. Checkpoint: Records for Sessions32 min · Independent checkpoint

Day 6 · About 146 minutes

Input and Program Boundaries

Reject malformed input and organize several source files.

  1. Read a Bounded Line40 min · Read, predict and practice
  2. Validate Before Converting34 min · Read, predict and practice
  3. Respect Storage Capacity32 min · Read, predict and practice
  4. 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.

  1. The Study Report Brief25 min · Read, predict and practice
  2. Assemble the Report30 min · Read, predict and practice
  3. Test the Boundaries30 min · Read, predict and practice
  4. Extend It and Run Locally30 min · Read, predict and practice
  5. On Your Own: Reading Sessions35 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review