Expert C Programming: Deep Secrets
Prentice Hall, 14. jun. 1994 - 384 strani
This book is for the knowledgeable C programmer, this is a second book that gives the C programmers advanced tips and tricks. This book will help the C programmer reach new heights as a professional. Organized to make it easy for the reader to scan to sections that are relevant to their immediate needs.
Zadetki 1–3 od 20
The symptom was that ncheck was failing in printf, by dereferencing a null pointer
and causing a segmentation violation. The faulty statement was: (void) printf(“%s”
, p->name); Most junior programmers from Yoyodyne Software Corp. would fix ...
... Handy Heuristic Why Does a Null Pointer Crash printf? One question that gets
asked over and over again is, “Why does a null pointer argument to printf crash
my program?” People seem to want to write code like this: char *p = NULL; /* .
Why Does a Null Pointer Crash printf? Since the programmer has coded
something wrongly, the question is, “At what point do you wish to bring this to his
or her attention?” If you insist that printf should handle a null pointer as though it
Mnenja - Napišite recenzijo
LibraryThing ReviewUporabnikova ocena - kalafjj - LibraryThing
A very enjoyable read. Not only will you learn aspects of C in great detail (the section on pointers vs. array is excellent), but the author writes in a witty manner I haven't typically found in programming books. (The style reminded me a bit of Programming Perl by Larry Wall.) Celotno mnenje
1 C Through the Mists of Time
2 Its Not a Bug Its a Language Feature
3 Unscrambling Declarations in C
10 preostalih delov ni prikazanih