Chapter 10. Using Pointers and References
Declare, dereference, and assign pointers
Use pointers to structures
Use pointers as function parameters
Use pointer arithmetic
Declare and initialize a reference
Use references as function parameters and return values
Overview
Software is, at its heart, lots of binary code—a slew of 1
s and 0
s flipping about, turning on and off. As programming languages have progressed and evolved over the years, the abstraction separating the programmer from the binary fiddling going on in the underlying hardware has dramatically increased.
This abstraction is complete in the case of some modern programming languages. Many contemporary programmers don’t even understand the notion of memory addressing—it’s ...
Get Practical C++ 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.