Автор: Richard M Reese
Издательство: O'Reilly Media
ISBN: 1449344186
Год: 2013
Страниц: 226
Язык: английский
Формат: pdf (true), djvu
Размер: 10.1 MB
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.
Difficult to master, pointers provide C with much flexibility and power-yet few resources are dedicated to this data type. This comprehensive book has the information you need, whether you’re a beginner or an experienced C or C++ programmer or developer.
Pointers are complex enough to deserve more in-depth treatment. This book providesthat treatment by focusing on pointers to convey a deeper understanding of C. Part of this understanding requires a working knowledge of the program stack and heap along with the use of pointers in this context. Any area of knowledge can be understood at varying degrees, ranging from a cursory overview to an in-depth, intuitive understanding. That higher level of understanding for C can only be achieved with a solid understanding of pointers and the management of memory.
Get an introduction to pointers, including the declaration of different pointer types
Learn about dynamic memory allocation, de-allocation, and alternative memory management techniques
Use techniques for passing or returning data to and from functions
Understand the fundamental aspects of arrays as they relate to pointers
Explore the basics of strings and how pointers are used to support them
Examine why pointers can be the source of security problems, such as buffer overflow
Learn several pointer techniques, such as the use of opaque pointers, bounded pointers and, the restrict keyword
Скачать Understanding and Using C Pointers: Core Techniques for Memory Management