Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

Improve your programming through a solid understanding of C pointers and memory management. With this practical book, you’ll learn how pointers provide the mechanism to dynamically manipulate memory, enhance support for data structures, and enable access to hardware. Author Richard Reese shows you how to use pointers with arrays, strings, structures, and functions, using memory models throughout the book.

Subscriber Reviews

Average Rating: 4.666666666666667 out of 5 rating Based on 3 Ratings

"Pointers straight to the point" - by mko on 23-JUN-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
Pointers are the nemesis of most of newcomers to C. There are few issues related to this topic. Pointers arithmetics is confusing, people get confused when it comes to characters and strings, array based arithmetics using pointers will not make any beginner happy. And, after all of that, comes pointers to functions and issues related to security (e.g. stack overflow).

So far, I haven't found book so much focused on the topics as Understanding and Using C Pointers is. Typically, C related books try to cover all the aspects of the language, here on the contrary, we have different approach. What you get here are pointer related topics only. This means that you should be already familiar with C (at least in the way you are able to compile and run C based code). Various topics discussed in the book cover almost all of the aspects of the pointers. You will learn how pointers arithmetics work, how to allocate memory, how to deal with multidimensional arrays using pointers and dynamic allocation. Apart from typical usage of pointers you will also lear how to use them in context of functions (function pointers).

I have found this book very useful, however, I think it might be still an issue to follow all the odds and ends by C newcomers. Some topics (e.g. arrays of function pointers) are explained such way it might be confusing. The problem here is that reader must understand and follow three different aspects of the problem at the same time: function pointer, array, character as indexes of arrays and, most confusing, why the hell do we declare 128 elements array if we only use two of them. I perfectly understand author's point of view, however, it is still confusing. Another issue is that illustrations in the book sometimes miss the proper description and explanation (in my opinion Kochan's C language book makes better use of them).

Anyway, I still think that buying this book is an idea worth considering. If you know C, but would like to get familiar with odds and ends of pointers you should consider buying this one.

Report as Inappropriate

Table of Contents

 

Extras

The publisher has provided additional content related to this title.


Description
Content

Visit the catalog page for Understanding and Using C Pointers

  • Catalog Page

Visit the errata page for Understanding and Using C Pointers

  • Errata