Book description
Gain a better understanding of pointers, from the basics of how pointers function at the machine level, to using them for a variety of common and advanced scenarios. This short contemporary guide book on pointers in C programming provides a resource for professionals and advanced students needing in-depth hands-on coverage of pointer basics and advanced features. It includes the latest versions of the C language, C20, C17, and C14.
You’ll see how pointers are used to provide vital C features, such as strings, arrays, higher-order functions and polymorphic data structures. Along the way, you’ll cover how pointers can optimize a program to run faster or use less memory than it would otherwise.
There are plenty of code examples in the book to emulate and adapt to meet your specific needs.
What You Will Learn
- Work effectively with pointers in your C programming
- Learn how to effectively manage dynamic memory
- Program with strings and arrays
- Create recursive data structures
- Implement function pointers
Intermediate to advanced level professional programmers, software developers, and advanced students or researchers. Prior experience with C programming is expected.
Table of contents
- Cover
- Front Matter
- 1. Introduction
- 2. Memory, Objects, and Addresses
- 3. Pointers
- 4. Pointers and Types
- 5. Arrays
- 6. Working with Arrays
- 7. Strings
- 8. Substrings Through Ranges
- 9. Dynamic Memory Management
- 10. Generic Dynamic Arrays
- 11. Linked Lists
- 12. Search Trees
- 13. Function Pointers
- 14. Generic Lists and Trees
- 15. Reference Counting Garbage Collection
- 16. Allocation Pools
- 17. Conclusions
- Back Matter
Product information
- Title: Pointers in C Programming: A Modern Approach to Memory Management, Recursive Data Structures, Strings, and Arrays
- Author(s):
- Release date: April 2021
- Publisher(s): Apress
- ISBN: 9781484269275
You might also like
book
Data Structures using C, 2nd Edition
Data structure is the logical organization of a set of data items that collectively describes an …
book
Algorithms in C, Parts 1-4: Fundamentals, Data Structures, Sorting, Searching, Third Edition
“This is an eminently readable book which an ordinary programmer, unskilled in mathematical analysis and wary …
book
Advanced C and C++ Compiling
Learning how to write C/C++ code is only the first step. To be a serious programmer, …
book
Hands-On System Programming with C++
A hands-on guide to making system programming with C++ easy Key Features Write system-level code leveraging …