Mastering C Pointers: Tools for Programming Power Review

Mastering C Pointers: Tools for Programming Power
Average Reviews:

(More customer reviews)
Are you looking to buy Mastering C Pointers: Tools for Programming Power? Here is the right place to find the great deals. we can offer discounts of up to 90% on Mastering C Pointers: Tools for Programming Power. Check out the link below:

>> Click Here to See Compare Prices and Get the Best Offers

Mastering C Pointers: Tools for Programming Power ReviewChapter 7 "Pointers and Memory Allocation", pages 102 & 103:
"The strlen() function returns the total number of bytes in the string including the NULL." This is completely incorrect. Any reading of the ANSI-C standard or even K&R will tell you this function never includes the null-terminator in the count. Further exacerbating the situation are the listings written to allocate memory based on this faulty statement.
Chapter 7 "Pointers and Memory Allocation", page 135:
The author attempts to show how one can [incorrectly] write a function to accept a variable number of integer arguments. Any compiler would return an error stating something to the effect of "too many arguments to function 'add'".
Chapter 7 "Pointers and Memory Allocation", page 146:
This last example from the book intends to show [again - incorrectly] how to return a pointer from a function call. The code listed has a subtle but common error most beginners make - returning a reference to a local variable.
char *combine (s, t)
char *s, *t;
{
int x, y ;
char r[100] ;
strcpy (r, s) ;
y = strlen (r) ;
for (x = y ; *t != '\0' ; ++x)
r[x] = *t++ ;
r[x] = '\0' ;
return (r) ;
}
There are many, many more errors like this that render the book useless. In addition, these same errors can be found repeated almost line for line in his other published works ("Master C Pointers" ISBN 0126974098, "Conquering C++ Pointers" ISBN 0126974209). One would be better advised to spend their money on something more factually correct and readable such as:
The C Programming Language, Brian W. Kernighan & Dennis Ritchie, ISBN 0131103628
C: How to Program (any edition), Harvey Deitel & Paul Deitel, ISBN 0132404168 (5th Ed)
C Programming FAQs: Frequently Asked Questions, Steve Summit, ISBN 0201845199
C Programming: A Modern Approach (any edition), K. N. King, ISBN 0393979504 (2nd Ed)
The Standard C Library, P.J. Plauger, ISBN 0131315099
Mastering C Pointers: Tools for Programming Power OverviewThis book features complete coverage on using and controlling C language pointers to make C applications more powerful and expressive.This edition is updated and revised to reflect the changes that have been brought about with the full adoption of ANSI C.

Want to learn more information about Mastering C Pointers: Tools for Programming Power?

>> Click Here to See All Customer Reviews & Ratings Now

0 comments:

Post a Comment