RESOURCES
Learn C with Raspberry Pi Learning how to code in C will also teach you the underlying principles of computing. By Phil King
CREATOR
An Introduction to C & GUI Programming Simon Long Price: £10 / $12 magpi.cc/guibook
Not only does this 156page official guide offer an introduction to learning C on Raspberry Pi, it shows you how to start creating graphical user interfaces with it. Aimed at beginners, the first half of the book teaches you the basics of writing simple command-line programs in C. Starting with Hello World, it covers everything from basic variables, strings, and arithmetic, through pointers (which learners often find difficult to grasp), right up to file input and output. Unlike many books on C, which can
run to thousands of pages, you get all the essential information in a compact format with no waffle. Once you’ve worked through those chapters (or if you have previous experience using C), you are ready for the second half of the book, which shows how to use the GTK user interface toolkit with C to create featurerich GUI applications that can be run on the desktop. You start with handling user input with buttons and menus, before moving on to more advanced UI features such as data stores and dialogs.
Books to read Study these guides to learn the language C PROGRAMMING ABSOLUTE BEGINNER’S GUIDE
advanced topics in great detail and features practical examples. An ideal companion for an
Ideal for complete beginners, its 352 pages
online course.
take readers step-by-step through all the
magpi.cc/ckochan
concepts with great clarity and numerous code examples. By the end, you’ll have a good
C PROGRAMMING LANGUAGE
grasp of the language.
Co-written by Dennis Ritchie, the creator of
magpi.cc/cpabg
the C language, this book (aka ‘K&R’) has long been viewed as the definitive tome for
82
PROGRAMMING IN C
learning C. A little heavy-going, but a trusty
Stephen G Kochan’s epic 544-page tome
reference guide.
covers everything from the fundamentals to
magpi.cc/kandr
magpi.cc
Learn C with Raspberry Pi