Understanding and Using C Pointers Core techniques for memory management 21099

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 access to enable 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 або C++ programmer or developer. 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, restrict the keyword

Chapter 1 : Introduction
Pointers and Memory
Pointer Size and Types
Pointer Operators
Common Uses of Pointers
Summary
Chapter 2 : Dynamic Memory Management in C
Dynamic Memory Allocation
Dynamic Memory Allocation Functions
Deallocating Memory Using the free Function
Dangling Pointers
Dynamic Memory Allocation Technologies
Summary
Chapter 3 : Pointers and Functions
Program Stack and Heap
Passing and Returning by Pointer
Function Pointers
Summary
Chapter 4 : Pointers and Arrays
Quick Review of Arrays
Pointer Notation and Arrays
Using malloc to Create a One-Dimensional Array
Using the realloc Function to Resize an Array
Passing a One-Dimensional Array
Using a One-Dimensional Array of Pointers
Pointers and Multidimensional Arrays
Passing a Multidimensional Array
Dynamically Allocating a Two-Dimensional Array
Jagged Arrays and Pointers
Summary
Chapter 5 : Pointers and Strings
String Fundamentals
Standard String Operations
Passing Strings
Returning Strings
Function Pointers and Strings
Summary
Chapter 6 : Pointers and Structures
Introduction
Structure Deallocation Issues
Avoiding malloc/free Overhead
Using Pointers to Support Data Structures
Chapter 7 : Security Issues and the Improper Use of Pointers
Pointer Declaration and Initialization
Pointer Usage Issues
Memory Deallocation Issues
Using Static Analysis Tools
Summary
Chapter 8 : Odds and Ends
Casting Pointers
Aliasing, Strict Aliasing, and restrict the Keyword
Threads and Pointers
Object-Oriented Techniques
Summary
Colophon

  • Автор
    Richard Reese
  • Категорія
    Програмування
  • Мова
    Англійська
  • Рік
    2014
  • Сторінок
    226
  • Формат
    170х240 мм
  • Обкладинка
    М'яка
  • Тип паперу
    Офсетний
  • Ілюстрації
    Чорно-білі
  • Термін поставки
    7-10 дней
  • Оформлення
    Часткове лакування
535 ₴
Купити
Відділення Нова Пошта80 ₴
Поштомат Нова Пошта40 ₴
Кур’єр Нова Пошта120 ₴
Відділення УкрПошта50 ₴
Кур’єр за адресою90 ₴
Understanding and Using C Pointers Core techniques for memory management - фото 1
Understanding and Using C Pointers Core techniques for memory management - фото 2
21099
Залиште свій відгук про книгу,
допоможіть тим, хто ще не читав