Chapter 19

Deep into Pointer Land

IN THIS CHAPTER

check Using a pointer to display an array

check Replacing array notation with pointers

check Working with strings and pointers

check Understanding arrays of pointers

check Performing a string sort

check 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 ...

Get C Programming For Dummies, 2nd Edition 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.