
Learn to Code with C
Program with the world's most popular language on your Raspberry Pi
- 88 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
About this book
The C programming language was invented in the early 1970s, and since then has become one of the most popular and widely used general-purpose languages. It's 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.
C is a very powerful language – there's not much you can't use it for – but it's fairly simple. The language itself only has 20 or so keywords, but there's a huge library of additional functions that you can call in when you need them.
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
This book is an introduction to programming in C for absolute beginners; you don't need any previous programming experience, and a Raspberry Pi running Raspberry Pi OS is all you need to get started.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Cover
- Contents
- [ Chapter One ] Getting Started: What’s so great about C?
- [ Chapter Two ] Variables & Arithmetic: Create variables and do maths
- [ Chapter Three ] Conditions & Comparisons: Control the flow of your C programs
- [ Chapter Four ] More Advanced Flow Control: For loops and case statements
- [ Chapter Five ] Pointers: Variables have addresses too
- [ Chapter Six ] Functions: Split your code into bite-sized chunks
- [ Chapter Seven ] Arrays & Strings: Handle lists of values, and letters
- [ Chapter Eight ] The String Library: Simplify common operations on strings
- [ Chapter Nine ] User Input: Reading and interpreting user input
- [ Chapter Ten ] File Input and Output: Learn to read from and write to files
- [ Chapter Eleven ] More about Types and Variables: Type definitions, enumerations & more
- [ Chapter Twelve ] Header Files and the Preprocessor: Splitting code up into multiple files
- [ Chapter Thirteen ] Quick Reference: Cheat sheets and code examples
- Back Cover