Skip to main content
Logo image

Chapter 19 Pointers

In this chapter, we will look more closely at the way variables are stored in memory (and found by your code) and how to use this information to potentially simplify our code, especially with functions! This understanding will allow us to modify variables within functions whose scope does not seem to include the function (the trick will be to tell the function the variable’s address, thereby enabling your code in the function to access the memory location that holds the variable’s value). We will also look at design and testing methods to help outline our coding processes.