The aim of this chapter is to provide an introduction to pointers in C. You’ve come across pointers in various guises slowly over the preceding chapters in the book, but the book has not yet scratched the surface of how pointers can be used.
After you finish this chapter, you will have covered enough of the C language to begin serious programming tasks in C. Pointers are useful in manipulating lists of information, memory blocks, and arrays such as strings.
In order to explain the way that pointers work and how they can be used, the chapter deals with them using two of the most common applications—strings and lists. It is easier to understand how to use pointers when you see them in action.
You’ve been dealing with pointers ...