Skip to main content
  • Book
  • © 2021

Pointers in C Programming

A Modern Approach to Memory Management, Recursive Data Structures, Strings, and Arrays

Apress

Authors:

  • Focuses exclusively on pointers in C programming

  • Reduce your software or firmware application's memory footprint and optimize its performance

  • Written by an an expert computational scientist and teacher with expertise in C and R

  • 30k Accesses

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (17 chapters)

  1. Front Matter

    Pages i-xiii
  2. Introduction

    • Thomas Mailund
    Pages 1-2
  3. Memory, Objects, and Addresses

    • Thomas Mailund
    Pages 3-31
  4. Pointers

    • Thomas Mailund
    Pages 33-68
  5. Pointers and Types

    • Thomas Mailund
    Pages 69-89
  6. Arrays

    • Thomas Mailund
    Pages 91-121
  7. Working with Arrays

    • Thomas Mailund
    Pages 123-155
  8. Strings

    • Thomas Mailund
    Pages 157-193
  9. Substrings Through Ranges

    • Thomas Mailund
    Pages 195-218
  10. Dynamic Memory Management

    • Thomas Mailund
    Pages 219-258
  11. Generic Dynamic Arrays

    • Thomas Mailund
    Pages 259-303
  12. Linked Lists

    • Thomas Mailund
    Pages 305-369
  13. Search Trees

    • Thomas Mailund
    Pages 371-409
  14. Function Pointers

    • Thomas Mailund
    Pages 411-448
  15. Generic Lists and Trees

    • Thomas Mailund
    Pages 449-476
  16. Reference Counting Garbage Collection

    • Thomas Mailund
    Pages 477-508
  17. Allocation Pools

    • Thomas Mailund
    Pages 509-523
  18. Conclusions

    • Thomas Mailund
    Pages 525-526
  19. Back Matter

    Pages 527-537

About this book

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

Who This Book Is For 

Intermediate to advanced level professional programmers, software developers, and advanced students or researchers. Prior experience with C programming is expected. 

Authors and Affiliations

  • Aarhus N, Denmark

    Thomas Mailund

About the author

Thomas Mailund is an associate professor in bioinformatics at Aarhus University, Denmark. He has a background in math and computer science, including experience programming and teaching in the C and R programming languages. For the last decade, his main focus has been on genetics and evolutionary studies, particularly comparative genomics, speciation, and gene flow between emerging species.

Bibliographic Information

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access