PORTO-
FREI

Understanding and Using C Pointers

Core Techniques for Memory Management

von Reese, Richard M   (Autor)

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

Buch (Kartoniert)

EUR 38,00

Alle Preisangaben inkl. MwSt.

Auch verfügbar als:

  Lieferzeit ca. 2 bis 4 Wochen
(Besorgungstitel, verlagsbedingte Lieferzeit ca. 2 bis 4 Wochen)

Versandkostenfrei*

Dieser Artikel kann nicht bestellt werden.
 

Produktbeschreibung

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

Inhaltsverzeichnis

Preface;
Why This Book Is Different;
The Approach;
Audience;
Organization;
Summary;
Conventions Used in This Book;
Using Code Examples;
Safari® Books Online;
How to Contact Us;
Chapter 1: Introduction;
1.1 Pointers and Memory;
1.2 Pointer Size and Types;
1.3 Pointer Operators;
1.4 Common Uses of Pointers;
1.5 Summary;
Chapter 2: Dynamic Memory Management in C;
2.1 Dynamic Memory Allocation;
2.2 Dynamic Memory Allocation Functions;
2.3 Deallocating Memory Using the free Function;
2.4 Dangling Pointers;
2.5 Dynamic Memory Allocation Technologies;
2.6 Summary;
Chapter 3: Pointers and Functions;
3.1 Program Stack and Heap;
3.2 Passing and Returning by Pointer;
3.3 Function Pointers;
3.4 Summary;
Chapter 4: Pointers and Arrays;
4.1 Quick Review of Arrays;
4.2 Pointer Notation and Arrays;
4.3 Using malloc to Create a One-Dimensional Array;
4.4 Using the realloc Function to Resize an Array;
4.5 Passing a One-Dimensional Array;
4.6 Using a One-Dimensional Array of Pointers;
4.7 Pointers and Multidimensional Arrays;
4.8 Passing a Multidimensional Array;
4.9 Dynamically Allocating a Two-Dimensional Array;
4.10 Jagged Arrays and Pointers;
4.11 Summary;
Chapter 5: Pointers and Strings;
5.1 String Fundamentals;
5.2 Standard String Operations;
5.3 Passing Strings;
5.4 Returning Strings;
5.5 Function Pointers and Strings;
5.6 Summary;
Chapter 6: Pointers and Structures;
6.1 Introduction;
6.2 Structure Deallocation Issues;
6.3 Avoiding malloc/free Overhead;
6.4 Using Pointers to Support Data Structures;
Chapter 7: Security Issues and the Improper Use of Pointers;
7.1 Pointer Declaration and Initialization;
7.2 Pointer Usage Issues;
7.3 Memory Deallocation Issues;
7.4 Using Static Analysis Tools;
7.5 Summary;
Chapter 8: Odds and Ends;
8.1 Casting Pointers;
8.2 Aliasing, Strict Aliasing, and the restrict Keyword;
8.3 Threads and Pointers;
8.4 Object-Oriented Techniques;
8.5 Summary;
Colophon; 

Autoreninfo

Richard Reese has worked in the industry and academics for the past 29 years. For 10 years he provided software development support at Lockheed and at one point developed a C based network application. He was a contract instructor providing software training to industry for 5 years. Richard is currently an Associate Professor at Tarleton State University in Stephenville Texas. 

Mehr vom Verlag:

k.A.

Mehr vom Autor:

Reese, Richard M

Produktdetails

Medium: Buch
Format: Kartoniert
Seiten: 223
Sprache: Englisch
Erschienen: Juni 2013
Maße: 233 x 177 mm
Gewicht: 378 g
ISBN-10: 1449344186
ISBN-13: 9781449344184

Bestell-Nr.: 13273199 
Libri-Verkaufsrang (LVR):
Libri-Relevanz: 0 (max 9.999)
 

Ist ein Paket? 0
Rohertrag: 1,78 €
Porto: 1,84 €
Deckungsbeitrag: -0,06 €

LIBRI: 5291615
LIBRI-EK*: 33.74 € (5%)
LIBRI-VK: 38,00 €
Libri-STOCK: 0
LIBRI: 018 Besorgungstitel * EK = ohne MwSt.
P_SALEALLOWED: WORLD
DRM: 0
0 = Kein Kopierschutz
1 = PDF Wasserzeichen
2 = DRM Adobe
3 = DRM WMA (Windows Media Audio)
4 = MP3 Wasserzeichen
6 = EPUB Wasserzeichen

UVP: 2 
Warengruppe: 16330 

KNO: 37980344
KNO-EK*: 14.41 € (30%)
KNO-VK: 32,00 €
KNO-STOCK:
KNO-MS: 17

P_ABB: Illustrations
KNOABBVERMERK: 2013. 226 S. w. figs. 230 mm
Einband: Kartoniert
Sprache: Englisch

Alle Preise inkl. MwSt. , innerhalb Deutschlands liefern wir immer versandkostenfrei . Informationen zum Versand ins Ausland .

Kostenloser Versand *

innerhalb eines Werktages

OHNE RISIKO

30 Tage Rückgaberecht

Käuferschutz

mit Geld-Zurück-Garantie