Understanding and Using C Pointers: Core Techniques for Memory Management

4.13 avg rating
( 75 ratings by Goodreads )
 
9781449344184: Understanding and Using C Pointers: Core Techniques for Memory Management

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

"synopsis" may belong to another edition of this title.

Review:

Q&A with Richard Reese, author of "Understanding and Using C Pointers"

Q. Why is your book timely?

A. The C language continues to be a popular and widely used language. In addition, there are millions of lines of C code being maintained. Pointers are central to C and a solid understanding of them is important in crafting reliable and secure software. Understanding C pointers has always been important but they have not always been adequately covered. Their widespread usage in new and old applications begs a complete and comprehensive coverage.

Q. What do you hope that readers of your book will walk away with?

A. I hope that the experienced developer will be able to fill any holes in their understanding of C pointers. I hope that the less experienced developers will become more proficient and confident in their application of pointers.

Q. Can you give us a few tips on using pointers?

  1. Be careful when using pointers to void. If you cast a pointer to a pointer to void there is nothing preventing you from casting it to a different pointer type.
  2. When using function pointers the programmer must be careful to ensure it is used properly because C does not check to see if the correct parameters are passed.
  3. New code development should use the restrict keyword with most pointer declarations. This will enable better code optimization. Modifying existing code may not be worth the effort.
  4. Compilers do not always do a good job at reporting alias-related warnings. They can sometimes miss aliases and may sometimes report alias problems where they don't exist. It is ultimately up to the programmer to identify alias conditions.
  5. Remember NULL and NUL are different. NULL is used as a special pointer and is typically defined as ((void*)0). NUL is a char and is defined as '\0'. They should not be used interchangeably.
  6. Improperly aligned pointers can result in an abnormal program termination or retrieval of bad data. In addition, slower pointer access is possible if the compiler is required to generate additional machine code to compensate for the improper alignment.

Book Description:

Core techniques for memory management

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

International Edition
International Edition

1.

Richard Reese
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Softcover Quantity Available: 10
International Edition
Seller:
bookscollection
(Delhi, DELHI, India)
Rating
[?]

Book Description Book Condition: Brand New. PAPERBACK,Book Condition New, International Edition. We Do not Ship APO FPO AND PO BOX. Cover Image & ISBN may be different from US edition but contents as US Edition. Printing in English language.NO CD AND ACCESS CODE. Quick delivery by USPS/UPS/DHL/FEDEX/ARAMEX ,Customer satisfaction guaranteed. We may ship the books from Asian regions for inventory purpose. Bookseller Inventory # ABEAVS*##6048

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 14.77
Convert Currency

Add to Basket

Shipping: US$ 4.13
From India to U.S.A.
Destination, Rates & Speeds
International Edition
International Edition

2.

Richard Reese
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Quantity Available: 10
International Edition
Seller:
Unique Bookseller
(Delhi, India)
Rating
[?]

Book Description Book Condition: Brand New. .. Black & White or color International Edition. ISBN and front cover may be different, but contents are same as the US edition. Book printed in English. Territorial restrictions may be printed on the book. GET IT FAST within 3-5 business days by DHL/FedEx/Aramex and tracking number will be uploaded into your order page within 24-48 hours. Kindly provide day time phone number in order to ensure smooth delivery. No shipping to PO BOX, APO, FPO addresses. 100% Customer satisfaction guaranteed!. . Bookseller Inventory # UBS09486

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 22.04
Convert Currency

Add to Basket

Shipping: FREE
From India to U.S.A.
Destination, Rates & Speeds

3.

Reese, Richard M
Published by O'Reilly Media
ISBN 10: 1449344186 ISBN 13: 9781449344184
New PAPERBACK Quantity Available: > 20
Seller:
Mediaoutlet12345
(Springfield, VA, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. PAPERBACK. Book Condition: New. 1449344186 *BRAND NEW* Ships Same Day or Next!. Bookseller Inventory # SWATI2132558856

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 25.04
Convert Currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, Rates & Speeds

4.

Richard Reese
Published by O Reilly Media, Inc, USA, United States (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Paperback Quantity Available: 10
Seller:
The Book Depository US
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2013. Paperback. Book Condition: New. Language: English . Brand New Book. 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. Bookseller Inventory # AAH9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 30.14
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

5.

Richard Reese
Published by O Reilly Media, Inc, USA, United States (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Paperback Quantity Available: 10
Seller:
The Book Depository
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2013. Paperback. Book Condition: New. Language: English . Brand New Book. 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. Bookseller Inventory # AAH9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 31.15
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

6.

Richard Reese
Published by O'Reilly Media 2013-05-15 (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Quantity Available: 5
Seller:
Chiron Media
(Wallingford, United Kingdom)
Rating
[?]

Book Description O'Reilly Media 2013-05-15, 2013. Book Condition: New. Brand new book, sourced directly from publisher. Dispatch time is 24-48 hours from our warehouse. Book will be sent in robust, secure packaging to ensure it reaches you securely. Bookseller Inventory # NU-GRD-04980992

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 28.74
Convert Currency

Add to Basket

Shipping: US$ 3.95
From United Kingdom to U.S.A.
Destination, Rates & Speeds

7.

Reese, Richard M.
Published by O'Reilly Media 5/18/2013 (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Paperback or Softback Quantity Available: 10
Seller:
BargainBookStores
(Grand Rapids, MI, U.S.A.)
Rating
[?]

Book Description O'Reilly Media 5/18/2013, 2013. Paperback or Softback. Book Condition: New. Understanding and Using C Pointers: Core Techniques for Memory Management. Book. Bookseller Inventory # BBS-9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 33.22
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

8.

Reese, Richard
Published by Oand#8242;Reilly (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Quantity Available: > 20
Seller:
Books2Anywhere
(Fairford, GLOS, United Kingdom)
Rating
[?]

Book Description Oand#8242;Reilly, 2013. PAP. Book Condition: New. New Book. Shipped from UK in 4 to 14 days. Established seller since 2000. Bookseller Inventory # WO-9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 22.13
Convert Currency

Add to Basket

Shipping: US$ 11.90
From United Kingdom to U.S.A.
Destination, Rates & Speeds

9.

Richard M. Reese
Published by OReilly Media
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Paperback Quantity Available: > 20
Seller:
THE SAINT BOOKSTORE
(Southport, United Kingdom)
Rating
[?]

Book Description OReilly Media. Paperback. Book Condition: New. New copy - Usually dispatched within 2 working days. Bookseller Inventory # B9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 25.43
Convert Currency

Add to Basket

Shipping: US$ 9.17
From United Kingdom to U.S.A.
Destination, Rates & Speeds

10.

Reese, Richard
Published by O'Reilly Media, Inc, USA (2013)
ISBN 10: 1449344186 ISBN 13: 9781449344184
New Softcover First Edition Quantity Available: > 20
Rating
[?]

Book Description O'Reilly Media, Inc, USA, 2013. Book Condition: New. 2013. 1st Edition. Paperback. 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. Num Pages: 226 pages, Illustrations. BIC Classification: UMX. Category: (XV) Technical / Manuals. Dimension: 232 x 177 x 15. Weight in Grams: 398. . . . . . . Bookseller Inventory # V9781449344184

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 36.26
Convert Currency

Add to Basket

Shipping: FREE
From Ireland to U.S.A.
Destination, Rates & Speeds

There are more copies of this book

View all search results for this book