Mastering C Pointers (eBook)
194 Seiten
Elsevier Science (Verlag)
978-1-4832-5779-2 (ISBN)
Mastering C Pointers: Tools for Programming Power focuses on the pointer operations of the C programming language, explaining exactly what pointers are and how to master them through easy-to-understand phrasing and by presenting many simple program examples. The functions of pointers with respect to memory access and memory allocation are also discussed. Comprised of 10 chapters, this book begins with the author's personal reflection on his first encounters with the C programming language and its pointers. The next two chapters presents steps to learning pointers, with emphasis on the essential processes that occur (invisibly and internally) when declaring standard numeric variables in C language and how to deal with C language character arrays and C strings. The reader is then introduced to string pointers and declared pointers of numeric types; the use of C language pointers and the memory allocation functions; and C language functions. The book also explores some of the other "e;entities"e; that pointers are used to access, including structures and unions, before concluding with an examination of the source code format of C language. This monograph is intended for both beginning and experienced C language programmers.
Front Cover 1
Mastering C Pointers: Tools for Programming Power 4
Copyright Page 5
Table of Contents 8
Dedication 6
Preface 10
Chapter 1. C Language and Pointers—A Personal Background 14
Chapter 2.
22
The "Little Nan" Approach 27
Summary 30
Chapter 3.
32
C Language Character Arrays
32
Lack of Array Bounds Checking 41
The "Little
44
Summary 46
Chapter 4.
48
A Practical Use of Pointers 53
Danger!!! 57
Other Pointers of Numeric Types 59
Summary 60
Chapter 5.
64
Problems 79
Arrays of Pointers 84
Summary 87
Chapter 6.
90
Memory Models 92
Why Char Pointers? 106
Summary 110
Chapter 7.
112
Memory Allocation Functions 113
Summary 133
Chapter 8.
136
Pointers to Functions 150
Functions Returning Pointers 158
Summary 162
Chapter 9.
166
Pointers to Structures 166
Pointers to Pointers 170
Summary 177
Chapter 10.
180
Format for a Format 190
Summary 193
Index 194
| Erscheint lt. Verlag | 10.5.2014 |
|---|---|
| Sprache | englisch |
| Themenwelt | Mathematik / Informatik ► Informatik ► Theorie / Studium |
| ISBN-10 | 1-4832-5779-7 / 1483257797 |
| ISBN-13 | 978-1-4832-5779-2 / 9781483257792 |
| Informationen gemäß Produktsicherheitsverordnung (GPSR) | |
| Haben Sie eine Frage zum Produkt? |
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich