Programming in C in 100 Solved Exercises

Cover of Programming in C in 100 Solved Exercises book - Learn C programming with practical step-by-step exercises

Learn C by doing: 100 exercises explained step by step

Want to truly master C? This book teaches you practical programming from fundamentals to advanced techniques. Each exercise includes a clear statement, reasoned solution and detailed explanation.

You can also read it on Kindle Unlimited (free with an active subscription or trial period).

What you'll learn

Strong C fundamentals

Variables, data types, and operators to understand how C works from the ground up.

Control flow and logic

Conditionals and loops (`if`, `switch`, `for`, `while`) to solve practical problems step by step.

Functions and recursion

Problem decomposition, code reuse, and recursive techniques applied with clear reasoning.

Pointers and dynamic memory

Address handling, `malloc/free`, and practices that prevent common memory bugs.

Arrays, strings, and structs

Data modeling with arrays, strings, and `struct` to build more complete solutions.

Files and input/output

File reading/writing plus resource handling for robust command-line programs.

Not just theory: real practice

Each exercise is designed so you write code from day one. You don't just read, you program and learn by doing.


In addition to the book, you have access to free resources that will help you learn faster:


Reader Pack

Receive free by email:

  • A4 C Language Cheat Sheet in PDF
  • Project template with tests
  • Devcontainer configured for VS Code
Request free pack

Source code

Access the complete code for all 100 exercises:

  • GitHub repository
  • Direct ZIP download
  • Ready-to-use template
View code on GitHub

Errata and corrections

Found an error in the book?

  • Report errata
  • Check published corrections
  • Keep your book updated
View errata

Did you like the book? Sign up for the newsletter: technology, education, programming, internet culture and useful tools.

If you want to practice before buying, here is a curated set of solved C programming exercises by core topic:

If you want the full guided progression path, get the book on Amazon and read it with Kindle Unlimited.