Skip to Content
Bare Metal C
book

Bare Metal C

by Steve Oualline
July 2022
Intermediate to advanced content levelIntermediate to advanced
304 pages
7h 6m
English
No Starch Press
Content preview from Bare Metal C

6 Arrays, Pointers, and Strings

So far, we’ve used very simple integers to represent data. But let’s face it, not everything in the world can be described as a single integer. In this chapter you’ll learn some of the basics of organizing your data.

First, you’ll learn about arrays, which are data structures that hold multiple items you can select using an integer index. I’ll also go a little beyond simple arrays to show you how the compiler implements arrays and how arrays implement strings of characters like "Hello World!\n". Along the way, you’ll learn to work with C’s char type.

You’ll learn how to use memory pointers, which hold the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall
Command-Line Rust

Command-Line Rust

Ken Youens-Clark

Publisher Resources

ISBN: 9781098130268