© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. DmitrovićModern C for Absolute Beginnershttps://doi.org/10.1007/979-8-8688-0224-9_10

10. Pointers

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

Data is stored in computer memory. The CPU reads from and writes to this memory. In simple terms, computer memory is an array of cells called bits. Usually, a group of eight bits makes a byte. Every byte in memory has its number, which we call a (memory) address. Our data objects reside in these memory cells, and each of these data objects has its address. If we know the address of an object, we can use pointers to access data objects in memory.

10.1 Introduction

So far, we have used regular variables to access these ...

Get Modern C for Absolute Beginners: A Friendly Introduction to the C Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.