Skip to content

C / Intermediate · Free public pilot

Intermediate C in 7 Days

Build a foundation and a reliable text analyzer. Read, predict, run, change and explain each program.

Start your first lesson →

Build on C beginner. Take your own time.

Know functions, bounded arrays, pointers, structs, input validation and separate source files first. No C++ knowledge, account or installation required. Allow about two and a half to three hours per day including practice; these are author estimates. On Day 7, On Your Own (about two hours) and the final review are 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.

Build a growing record collection, parse text carefully and produce sorted topic reports. Practice ownership, allocation failure and cleanup. Sanitizers, debugger use and local file streams are optional extensions. The browser course uses prefilled stdin and stdout.

Comfortable with ownership and failure tests? Continue with Advanced C →

Day 1 · About 170 minutes

Contracts and Size-Safe Code

Specify valid inputs and unchanged state on rejection.

  1. Begin with a Contract45 min · Read, predict and practice
  2. Sizes and Arithmetic Boundaries35 min · Read, predict and practice
  3. Name Failure Outcomes40 min · Read, predict and practice
  4. Checkpoint: A Bounded Record API50 min · Independent checkpoint

Day 2 · About 160 minutes

Dynamic Storage and Ownership

Allocate storage and release it exactly once on every exit path.

  1. Allocate and Initialize35 min · Read, predict and practice
  2. Check an Allocation Request35 min · Read, predict and practice
  3. Owners and Borrowers40 min · Read, predict and practice
  4. Checkpoint: An Owned Array50 min · Independent checkpoint

Day 3 · About 160 minutes

A Collection That Grows

Grow storage without losing data when allocation fails.

  1. Count and Capacity35 min · Read, predict and practice
  2. Grow Without Losing the Original40 min · Read, predict and practice
  3. Remove Without Leaving a Gap35 min · Read, predict and practice
  4. Checkpoint: A Growing Collection50 min · Independent checkpoint

Day 4 · About 155 minutes

Parsing Text Reliably

Reject overflow and malformed records, then recover for the next line.

  1. Bounded Topic Tokens45 min · Read, predict and practice
  2. Checked Numeric Conversion35 min · Read, predict and practice
  3. Recover After a Bad Line35 min · Read, predict and practice
  4. Checkpoint: Validate a Complete Record40 min · Independent checkpoint

Day 5 · About 145 minutes

Search, Sort and Summarize

Produce deterministic topic summaries without invalid borrowed access.

  1. Search Without Changing Storage35 min · Read, predict and practice
  2. Pass an Operation as a Callback35 min · Read, predict and practice
  3. Sort with a Truthful Comparator35 min · Read, predict and practice
  4. Checkpoint: Group a Sorted Report40 min · Independent checkpoint

Day 6 · About 155 minutes

Library Boundaries and Failure Tests

Prove cleanup and failure guarantees with controlled allocations.

  1. Keep the Library Boundary Clear35 min · Read, predict and practice
  2. One Cleanup Path40 min · Read, predict and practice
  3. Inject Allocation Failure40 min · Read, predict and practice
  4. Checkpoint: Prove Failure Guarantees40 min · Independent checkpoint

Day 7 · About 260 minutes

Ship the Text Analyzer

Run, test, extend and download a reusable analyzer and application.

  1. The Text Analyzer Brief25 min · Read, predict and practice
  2. Assemble the Analyzer35 min · Read, predict and practice
  3. Test the Analyzer Guarantees35 min · Read, predict and practice
  4. Extend and Download the Analyzer45 min · Read, predict and practice
  5. On Your Own: A Reading Log120 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review