Skip to content

← Code

C Programming

From printf to pointers, memory, and data structures — compile and run in your browser.

c 23 Lessons

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with notes in English and Chinese.

Start the course

Lessons in this course

  1. history A short history of C
  2. usage What C is used for
  3. resources Where to learn more
  4. setup Set up your computer
  5. 01 C basics: main, printf, and functions
  6. 02 Variables, types, and arithmetic
  7. 03 Booleans and selection: if, else, switch
  8. 04 Loops: while, for, and accumulation
  9. 05 Functions, parameters, and return values
  10. 06 Nested loops and patterns
  11. 07 1-D arrays: store, index, and traverse
  12. 08 Pointers: &, *, and pass-by-pointer
  13. 09 Strings: char arrays and the null terminator
  14. 10 Array algorithms: max, count, search, average
  15. 11 2-D arrays: working with a grid
  16. 12 Searching: linear and binary
  17. 13 Sorting: bubble, selection, and insertion
  18. 14 Recursion: base case and recursive case
  19. 15 Structs and typedef: . vs ->
  20. 16 Dynamic memory: malloc, free, and realloc
  21. 17 Linked lists
  22. 18 Stacks and queues (array-backed)
  23. 19 Text files: write then read
  24. 20 Error handling with return codes
  25. 21 Bits, binary, and bitwise operators
  26. 22 Run-length encoding (compression)
  27. 23 Preprocessor, const, static, and enum

Language reference

/know/reference/c

Log in or create account

IGCSE, A-Level & AP