C Programming with Examples

Contains ads
Content rating
Everyone
1K+
Downloads
Content rating
Everyone
Learn more
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image
Screenshot image

About this app

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
Updated on
Oct 13, 2026

Data safety

Safety starts with understanding how developers collect and share your data. Data privacy and security practices may vary based on your use, region, and age. The developer provided this information and may update it over time.
  • This app may share these data types with third parties
    Location, App activity and 2 others
  • No data collected
    Learn more about how developers declare collection
  • Data is encrypted in transit
  • Data can’t be deleted

What’s new

Improved Arabic display: maths, codes and English names in tables now read in the right order.