Courses / Start here / C Programming

Free courseSelf-paced

C Programming

Build a tested C command-line stock and order tracker that saves both record sets to files and reloads them correctly after a restart.

  • Who it's for. Learners who can already solve small programming problems and want to learn C and how programs use memory.
  • Before you start. Programming Problem Solving or an accepted equivalent, shown by a working artifact you can rebuild and explain. No prior C syntax is needed.
  • 48 to 78 hours of study with practice
  • 10 modules, 96 lessons
  • 6 guided projects and a final project

What you'll learn

  • Build and run C programs with an explicit dialect and a recorded build.
  • Process bounded arrays and text with explicit sizes and a policy for malformed input.
  • Use pointers and allocated memory with stated lifetime, ownership and failure handling.
  • Save validated records to files and reject malformed files before replacing live state.
  • Implement, reproduce and demonstrate a tested, persistent stock and order tracker.

Skills you'll gain

  • Compiler
  • program execution
  • Types
  • expressions
  • Input
  • decisions
  • Loops
  • decomposition
  • Arrays
  • strings
  • Pointers
  • memory
  • Structures
  • file storage

Tools you'll use

  • C compiler with a pinned dialect flag
  • C standard library
  • Command line
  • Text-file persistence

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 10 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Build, types and decisions

    Compile and run C with recorded evidence, reason about types and conversions, and handle input with guarded decisions.

    You build: Build-and-run evidence bundle and the decision and input boundary specification for the tracker.

  2. 02

    Modules 4 to 6

    Loops, text and memory

    Write bounded loops and components with headers, process arrays and strings, then use pointers and allocated memory.

    You build: Bounded text and collection toolkit and an ownership map with a numeric parsing contract.

  3. 03

    Modules 7 to 8

    Records, files and tests

    Represent stock and order records, save them to files with honest failure handling, and verify components with tests.

    You build: Save-file schema with restart evidence and a verification matrix with a regression harness.

  4. 04

    Modules 9 to 10

    Integrate and extend

    Integrate the tested tracker and demonstrate it; module 10 is an optional C game clinic.

    You build: Tracker integration milestones ending in the final evidence package.

Full curriculum

10 modules and 96 lessons, 48 to 78 hours of study

01Compiler and program execution8 lessons, 4 to 6 hours

Lessons

  • C readiness and the working outcome
  • Hosted C and the selected dialect
  • Source files tokens and program structure
  • Translation stages and the executable
  • Build commands paths and repeatability
  • Diagnostics and failure categories
  • Program streams and process outcomes
  • The first trustworthy C evidence record

After this module you can

  • Map demonstrated problem-solving skills to the C stock-and-order outcome and identify any missing prerequisite evidence.
  • Distinguish the selected hosted C17 teaching baseline from C23, compiler extensions and an installed toolchain.
  • Assemble a reviewable record that distinguishes predicted behavior from an actual build and run of exact C source bytes.
02Types and expressions12 lessons, 6 to 9 hours

Lessons

  • Objects types and representable values
  • Initialization assignment and indeterminate state
  • Sizes counts and units
  • Integer arithmetic and representability
  • Conversions promotions and signedness
  • Floating values and numerical claims
  • Formatted output and type agreements
  • Comparisons and C truth values
  • Logical operators and guarded evaluation
  • Precedence sequencing and side effects
  • Unsigned masks and bounded shifts
  • Defined behavior and portability boundaries

After this module you can

  • Choose a scalar C type for a bounded value domain without assuming universal byte widths or signedness.
  • Distinguish creating an initialized object from later assignment and avoid reading an object before a valid value is established.
  • Classify assumptions as guaranteed, implementation-defined, unspecified or undefined and choose evidence appropriate to each.
03Input and decisions8 lessons, 4 to 6 hours

Lessons

  • Character input and the EOF boundary
  • Single decisions and block scope
  • Exclusive alternatives and complete cases
  • Switch choices and deliberate fallthrough
  • Validation before state changes
  • Conditional expressions and readable choices
  • Decision tests and independent expectations
  • Input limitations and the next bridge

After this module you can

  • Use the int result of getchar to distinguish input characters from end-of-input without narrowing first.
  • Implement a single guarded branch using introduced scalar input and well-bracketed C blocks.
  • Explain why a one-character reader, token scan and validated full line are different input contracts.
04Loops and decomposition11 lessons, 5 to 8 hours

Lessons

  • While loops and progress in C
  • For loops and half-open ranges
  • Do-while and repeated-input contracts
  • Break, continue and retained state
  • Nested loops and reset responsibilities
  • Functions, prototypes and responsibilities
  • Arguments, returned values and effects
  • Scope, storage duration and linkage
  • Bounded recursion and resource limits
  • Headers, separate compilation and linkage
  • Preprocessor constants and macro hazards

After this module you can

  • Implement condition-controlled repetition with a stated invariant, progress argument and safe numeric bounds.
  • Express known-count work using a for loop and distinguish initialization, test and update timing.
  • Distinguish token substitution from typed function evaluation and avoid macros that duplicate side effects.
05Arrays and strings10 lessons, 5 to 7 hours

Lessons

  • Fixed arrays length capacity and bounds
  • Traversal and safe aggregate state
  • Array parameters and the pointer bridge
  • Two-dimensional arrays and shape contracts
  • C strings and the terminator contract
  • String comparison copying and formatting limits
  • Reading bounded text lines
  • Rejecting malformed byte streams
  • Character classification and encoding limits
  • Array and text component integration

After this module you can

  • Distinguish an array's fixed capacity, used length and valid index domain in a bounded C collection.
  • Process only initialized used elements and preserve an accumulator's domain during array traversal.
  • Compose length-aware collection and text components without mixing capacities, borrowed data and independently checked outcomes.
06Pointers and memory12 lessons, 5 to 9 hours

Lessons

  • Addresses pointer types and indirection
  • Null checks and output parameters
  • Const qualified pointer interfaces
  • Pointer arithmetic within one array
  • Aliasing array views and overlap
  • Object lifetimes and invalid references
  • Allocation sizes and failure paths
  • Initialization and calloc limitations
  • Resizing without losing ownership
  • Free ownership and cleanup paths
  • Robust numeric text conversion
  • Callback interfaces and function pointers

After this module you can

  • Explain a pointer as a typed value designating an object or permitted position, without treating a diagram as a real address dump.
  • Use a pointer parameter to modify a caller-owned object while checking the API's null and failure contracts.
  • Read a simple function-pointer type and call only a compatible function with an explicit context-free contract.
07Structures and file storage11 lessons, 5 to 8 hours

Lessons

  • Structures fields and record invariants
  • Record pointers collections and identity
  • Enums tagged variants and union limits
  • Streams files and open modes
  • Read results EOF and stream errors
  • Writes flushing closing and honest success
  • Portable versioned text records
  • Validating loaded data before replacement
  • Save replacement and failure recovery
  • Round trips compatibility and corruption cases
  • Resource-safe persistence integration

After this module you can

  • Define a record with named fields and distinguish field validity from whole-record consistency.
  • Use records through explicit ownership and stable identifier contracts rather than assuming array position is identity.
  • Combine record, memory and stream lifetimes in a reusable persistence boundary with explicit cleanup on every outcome.
08Error handling and tests9 lessons, 4 to 7 hours

Lessons

  • Status codes and failure contracts
  • Errno assertions and validation boundaries
  • Independent oracles and test partitions
  • A minimal C regression harness
  • Warnings and static analysis limits
  • Memory and undefined-behavior instrumentation
  • Debugging from a minimal reproducer
  • Failure injection and resource accounting
  • Regression closure and scoped confidence

After this module you can

  • Design consistent status and output contracts that distinguish invalid requests, absent results and operational failures.
  • Use errno and assertions only where their documented contracts justify them and keep external-input checks active.
  • Decide which claims a completed C test bundle supports and retain open risks, variants and untested assumptions.
09Integrated application9 lessons, 4 to 7 hours

Lessons

  • Stock and order requirements and scope
  • Architecture interfaces and resource ownership
  • Stock operations and invariant preservation
  • Order processing and consistent state
  • CLI integration and malformed input
  • Persistence and restart integration
  • End-to-end tests and resource limits
  • Reproducible handoff and fresh-copy launch
  • Demonstration explanation and acceptance boundaries

After this module you can

  • Turn the capstone outcome into a bounded public contract with quantities, identifiers, failure behavior and demonstrable acceptance criteria.
  • Partition the tracker into input, domain, storage and presentation responsibilities with explicit shared invariants and ownership.
  • Demonstrate the functioning tracker, explain an unfamiliar in-scope case and resolve feedback with exact retest evidence.
10Optional C game clinic6 lessons, 3 to 4 hours

Lessons

  • Optional clinic entry and playable scope
  • Game state rules and legal transitions
  • Turn loops input and presentation
  • Deterministic scenarios and randomization limits
  • Game tests resources and optional saves
  • Playable demonstration and clinic closure

After this module you can

  • Select a bounded turn-based local game specialization only after core C skills and project evidence are accepted or equivalent competence is established.
  • Define a game state model and legal move contracts whose invariants hold after accepted and rejected actions.
  • Demonstrate the original game's legal play, failure handling and restart or quit behavior with exact source/evidence bindings.

What you'll build

6 guided projects along the way, then a final project.

  • Evidence-first hello: build record and run bundle

    after module 1
  • Typed domain and portability register

    after module 2
  • Decision and input boundary specification

    after module 3
  • Components, headers and loop obligations

    after module 4
  • Bounded text and collection toolkit

    after module 5
  • Ownership map and numeric parsing contract

    after module 6

Final project

A command-line stock and order tracker in a synthetic theme (workshop parts, library supplies or event materials) with unique ids, bounded quantities and stock checks.

What you submit

All .c and .h files, fixtures, build record, test bundle and README as a fresh-copy package with digests; persistence and restart evidence for both record sets.

How it's reviewed

Fresh-copy rebuild checked against eight rubric dimensions (requirements, defined behaviour, component design, stock and order consistency, persistence and recovery, verification, reproducibility, demonstration) and a trainer-reviewed live demonstration including an unfamiliar case.

Where you'll use it

  • Write a C utility that parses bounded command input and rejects invalid numbers without corrupting state.
  • Trace a pointer or buffer bug to its cause and add a regression check for it.

Roles that use these skills

  • C programmer (junior)
  • Embedded software trainee
  • Systems programming trainee

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need to know C already?

No. You need problem-solving skills from the earlier course or an equivalent, but no C syntax.

Is the game module required?

No. Module 10 is an optional C game clinic and does not change the core decision.

Does the project need to be deployed online?

No. The live project is the working local command-line tracker; no public deployment or real transaction is required.

Be first in when C Programming opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
FreeOpens soon
Notify me