Programming Academy
Learn C the way college courses teach it: printf and scanf, decisions and loops, arrays and strings, functions, pointers and structs, each with a program to write and run right on the page. Then put it all together in projects.
45 lessons, about 310 minutes so far · the first 3 lessons free
45 lessons
What C is, the parts every C program has, and your first programs: print words and numbers, write comments, and read what C tells you when something's wrong.
Keep values in variables (int, float, double, char), do sums with them, and read what the user types with scanf.
Let a program choose: if and else, comparing values, && and ||, else if chains, and switch for many choices.
Do things again and again: while, for and do…while, with break and continue, and loops inside loops.
Keep many values under one name: make arrays, go through them with a loop, find totals and the biggest, sort, and grids with two dimensions.
Text in C: arrays of characters, printing and reading words, string.h (strlen, strcpy, strcmp) and working letter by letter.
Make your own functions: give them values, get answers back, keep variables local, and write functions that call themselves.
Addresses and pointers: & and *, changing a variable through a pointer, pointers and arrays, and memory from malloc.
Group values with struct, make arrays of them, name types with typedef and enum, then put it all together in projects.