Learn C Essentials

Learn to program with the world’s most popular language using your Raspberry Pi

The C programming language been used to program everything from the tiny microcontrollers used in watches and toasters up to huge software systems – most of Linux (and Raspbian itself) is written in it. Learn to code with C on your Raspberry Pi across 13 packed chapters:

Create variables & do arithmetic

Control the flow of your C programs

For loops and case statements

Understand and create functions

Work with arrays and strings

Interpreting user input

and much more

Errata

Apologies for the following errata in Learn to Code with C. If you spot any errors in our books or magazines please email us via [email protected]. This list also appears on the Raspberry Pi forum.

On page 28, the code block contains the line int a = 5;

This should be:

inta=0;

On page 61 of the book, the use of the * as an argument to the program is mangled by the shell on Unix (although it does work correctly on Windows). To fix this for Unix, replace the line: