Chapter 19
Deep into Pointer Land
IN THIS CHAPTER
Using a pointer to display an array
Replacing array notation with pointers
Working with strings and pointers
Understanding arrays of pointers
Performing a string sort
Creating a function that eats pointers
It’s easy to accept what a pointer does, to numbly nod your head, to repeat the mantra, “A pointer is a variable that contains a memory location.” You can even memorize the difference between pointer variable p and pointer variable *p. But to truly know the power of the pointer, you have to discover how it's fully exploited in the C language. You must eschew the old way of doing things and fully embrace pointers for the miraculous witchcraft they do.
Pointers and Arrays
Arrays in the C language are nothing but a kettle full of lies! Truly, they don’t exist. As you discover the power of the pointer, you come to accept that an array ...
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.
Read now
Unlock full access