Learn C programming from the very beginning, then practise with 82 complete example programs. This app combines a clear, step-by-step tutorial on modern standard C (C17, with notes on C23) and a library of tested programs with real sample runs.
Every complete program in the app was compiled and run, and the real output is shown. Original diagrams show what happens inside the computer: how a program is built, how loops run, how arrays and strings sit in memory, how pointers work and how sorting and searching algorithms move data.
Part 1: the tutorial
• Getting started: installing a compiler (Windows, macOS, Linux, online and on Android), your first program, how compilation works
• Basics: variables, data types, operators, printf formats, safe input with scanf and fgets
• Control flow, functions, scope and recursion
• Arrays and strings, and how to avoid buffer overflows
• Pointers and memory: pointer arithmetic, function pointers, malloc and free
• Structures, unions, enums, files, the preprocessor and multi-file programs
• Errors and debugging: real compiler messages, undefined behaviour, sanitizers and debuggers
• A quick-reference cheat sheet and a summary of C23
Part 2: 82 example programs
• Basics, conditions and loops: even/odd, leap year, factorial, Fibonacci, primes and the sieve, GCD and LCM
• Patterns: pyramids, diamonds, Floyd's and Pascal's triangles
• Number systems and bitwise operators
• Arrays: searching and sorting (bubble, selection, insertion), merging, removing duplicates
• Matrices, strings, pointers, recursion and the Tower of Hanoi
• Structures and files, plus small projects: calculator, bank menu, guessing game and tic-tac-toe
Features
• Each program comes with a sample run and a "how it works" explanation
• Practice questions with answers
• Search across all pages
• Works offline, with no account needed
• Explanations available in 8 languages: English, Español, Português, Français, Deutsch, العربية, हिन्दी and Bahasa Indonesia
• Dark mode; code blocks scroll sideways so programs stay readable on a phone
This app is an independent study aid based on the ISO C standard and the GCC and Clang documentation.
C tutorial plus 82 tested example programs, with diagrams and sample runs