Understanding and Using C Pointers: Core Techniques for Memory Management / Richard M Reese

Book Cover Understanding and Using C Pointers: Core Techniques for Memory Management
List Price: $39.99
Our Price: $31.51
Lowest Price

For Bulk orders
Quantity

Used Book Price: $23.00
/ Richard M Reese
Publisher: O'Reilly Media
Availability:Usually ships in 24 hours
Sales Rank: 108960
ISBN-10: 1449344186
ISBN-13: 9781449344184


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.


Now you can buy Books online in USA,UK, India and more than 100 countries.
*Terms and Conditions apply
Disclaimer: All product data on this page belongs to buy amazon.
No guarantees are made as to accuracy of prices and information.

Contact Us

Create a Bookshelf of your Favorite books
Get it on Google Play        Get it on Google Play
For Any Queries please don't hesitate to contact us at
USA +1(760)3380762
+1(650) 9808080
India +91 9023011224
India +91 9023011224 (Whatsapp)
Donate
Buy Books online because as an Amazon Associate we earn from qualifying purchases.