Refunds Shipping

We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

Cover of Learn to Code with C

Learn to Code with C

or free e-book for contributors

The C programming language was invented in the early 1970s, and has since become one of the most popular and widely used general-purpose languages.

Coming Soon: Learn to Code with C goes on sale 1 December 2026.

C is used by a wide range of programmers, from amateurs working on simple projects at home to industry professionals who write in C for a living. It’s been used to program everything from the tiny microcontrollers used in watches and toasters up to huge software systems — most of Linux (and Raspberry Pi OS itself) is written in it. It can give you control over the smallest details of how a processor operates, but is still simple to learn and read.

Learn to code with C on your Raspberry Pi (or any other computer) across twelve in-depth chapters:

  • Create variables and perform arithmetic
  • Control the flow of your C programs
  • Work with for loops and case statements
  • Understand and create functions
  • Manipulate arrays and strings
  • Interpret user input
  • Work with files — and more

This book is an introduction to programming in C for absolute beginners; you don’t need any previous programming experience, and a computer with a C compiler is all you need to get started (a Raspberry Pi is a great choice). This second edition has been tested with the latest version of Raspberry Pi OS and features updated, full-colour screenshots.

Errata

Found a problem with the book? Submit an issue.

See all the issues readers have reported with this book.

Three issues for £10

Buy any three back issues of Raspberry Pi Official Magazine for just £10! No codes, no fuss. Add any three issues to your cart for an instant saving.

Click to buy!

Print Subscriptions

£10 for 3 issues

  • £10 for 3 issues paid by Direct Debit
  • Free Pico 2 W (or Pico 2)
  • Renews at £15 every 3 issues
  • Cancel at any time
  • Free delivery to your door
  • UK only
From £10

6 month recurring subscription

  • Free delivery to your door
  • Available worldwide
  • Free Pico 2 W (or Pico 2)
  • Cheaper than newsstand
  • Cancel at any time
From £30

12 month recurring subscription

  • 12 issues per year
  • Free Raspberry Pi Pico 2 W (or Pico 2) *
  • Up to to 23% cheaper
  • Free delivery to your door
  • Available worldwide

*Free Raspberry Pi Pico W with first subscription (renewals not included)

From £55

Digital Subscriptions

App Store

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Google Play

  • Free to download & 30 free issues
  • Best mobile reading experience
  • Read news straight from the app
  • Buy issues or subscribe from £2.49
From £3

Free PDF Edition

  • Delivered to your inbox
  • Optimised for screens
  • Clickable web links
  • Occasional news updates
Free