What you’ll learn
- Chapter 1From the first character to your own value – Starting point, output, variables and calculating.
Hallo, C! · int and %d · Text as a string · Calculating and += - Chapter 2Deciding and repeating – Check values and control small sequences.
if and else · while: as long as it is true · Arrays and fixed limits - Chapter 3Your own building blocks and a mini project – Organise data, build functions and connect what you have learned.
A function with a result · Pointers: value and address · Your C points coach - Chapter 4Level up: your next practice chapter – Understand four new building blocks in small steps and use them yourself.
struct: the data of a round · enum: states with names · Pointers: the address of a number · sizeof: counting elements in a fixed array - Chapter 5Master chapter: how real programs are built – Five building blocks from real projects – explained, connected, filled in and written by you.
for: looping through an array · string.h: working with texts · Pointers as parameters: swapping values · malloc and free: managing memory yourself · switch: cases by value - Chapter 6Project tools: understand and apply – Eight more building blocks with explanation pages and four exercises per lesson.
Computing an array size from sizeof · Reading data through a const pointer · snprintf limits a text output · Finding a character with strchr · Offering your own type name with typedef · Naming program states · Declaring functions before using them · Requesting initialised memory with calloc - Chapter 7Texts and characters – Count, convert and compare characters, and put texts together.
Counting characters: strlen and loops · Upper and lower case: toupper from ctype.h · Comparing texts: strcmp · Putting texts together: strcat · Boss: is it a palindrome? - Chapter 8Pointers and memory in depth – Pointer arithmetic, arrays as parameters, the arrow -> and growing memory.
Pointer arithmetic: walking through an array · Passing arrays to functions · Structures through pointers: the arrow -> · Growing arrays with realloc · Boss: a stack with struct - Chapter 9Structuring programs – Constants, static, recursion, two-dimensional arrays and clean functions.
Constants with #define · static: a value that stays · Recursion in C · Two-dimensional arrays · Boss: grade average with functions - Chapter 10Enumerations and switch – Names for numbers with enum, case distinction with switch, typedef and a small machine.
Names for numbers: enum · Case distinction: switch and break · Shorter type names: typedef · enum as an index · Boss: a drinks machine - Chapter 11Sorting and searching – Bubble sort by hand, qsort with a comparison function, sorting structures and binary search.
Sorting by hand: bubble sort · The library sorts: qsort · Sorting structures · Finding fast: binary search · Boss: a ranking - Chapter 12Bits and bytes – Memory sizes with sizeof, numbers in hexadecimal, bitwise operators, shifting and bit flags.
How big is that? sizeof · Numbers in hexadecimal · Bit by bit: & | ^ ~ · Shifting bits: << and >> · Boss: permissions as bit flags
Final project: C points coach
Combine variables, a decision and an output into your own points coach.
How it works
Every lesson starts with short explanation pages. Then you practise with multiple-choice questions, fill-in-the-gap tasks, putting code in order and writing your own code – with hints and instant feedback. Free, without ads, on phone, tablet and PC.