C Traps and Pitfalls has 70 ratings and 10 reviews. David said: Very good book, possible my third best book on C after K&R and ‘Expert C Programming’.T. Library of Congress Cataloging-in-Publication. Data. Koenig, Andrew. C traps and pitfalls. Incluqes index. 1. C (Computer program. QAC15K This book helps to prevent such problems by showing how C programmers get themselves into trouble. Each of the book’s many examples has trapped a.
|Genre:||Health and Food|
|Published (Last):||25 March 2012|
|PDF File Size:||9.87 Mb|
|ePub File Size:||14.81 Mb|
|Price:||Free* [*Free Regsitration Required]|
Goodreads helps you keep track of books you want to read. Want to Read saving….
Want to Read Currently Reading Read. Refresh and try again.
Open Preview See a Problem? Thanks for telling us about the problem.
C Traps and Pitfalls
Return to Book Page. C Traps and Pitfalls by Andrew Koenig. Even C experts come across problems that require days of debugging to fix.
This book helps to prevent such problems by showing how C programmers get themselves into trouble. Each of the book’s many examples has trapped a professional programmer. Paperbackpages. Published January 11th by Addison-Wesley Professional first published To see what your friends thought of this book, please sign up. To ask other readers questions about C Traps and Pitfallsplease sign up. Lists with This Book. Aug 17, David Lindelof rated it really liked it. This is not simply a list of puzzles, this book discusses real problems that one encounters when writing C code.
I thoroughly enjoyed this book. May 05, e rated it it was ok. There’s some things found to be interesting, while all of the chapter on the preprocessor and macros was still relevant.
And the macro definition of varargs in the appendix was interesting. Dec 09, JManInPhoenix rated it it was amazing. Excellent classic C programming book. I picked up quite a few nuggets from reading it. May 02, G. Branden rated it really liked it Recommends it for: Good stuff, sound advice, and despite its age on the cusp of C89still mostly relevant. The most dated thing is an appendix which covers varargs. Comes with exercises and solutions to same. Loaded with great stuff, concisely worded rules, and head-slappingly good war stories.
An excellent second book on C; wish I’d had it way back in my first C programming course.
C Traps and Pitfalls by Andrew Koenig
Written with character and verve. I’ll illustrate one of my favorite quotes with a code example closely a Good stuff, sound advice, and despite its age on the cusp of C89still mostly relevant.
I’ll illustrate one of my favorite quotes with a code example closely adapted from the book, in a section on ensuring that your output buffers are flushed so that error kosnig don’t go into the bit bucket. If malloc fails, it will return a null pointer. This is an acceptable second argument to setbuf; it requests that stdout be unbuffered.
Jun 24, Max Lybbert rated it really liked it. However, other traps and pitfalls remain relevant getchar returns an int, not a char; the preprocessor doesn’t always do what you think; operator precedence kofnig cause trouble; etc. I found the narrative style enjoyable, and learned a few things along the way.
I even enjoyed reading the history piffalls traps that are no longer relevant; several of those examples were outright entertaining. Jan 31, Xndrew Wang rated it piyfalls it. It goes over many what I deem obvious “traps and pitfalls” of C. However, there seems to be little that this book covers that “Expert C Programming: Jan 01, Studentgu rated it really liked it. Especially, The detailed answers are valuable treasures.
Definitely it had to be a must in the shelf of every software developer back anvrew the 80’s, but today it is very outdated.
Nov 27, Nick Black rated it it was ok. Jul anv, Kartik Singhal rated it really liked it Shelves: Highly recommended for those willing to know the ins and outs of C. One less star for no update in last twenty years. Taddese rated it really anf it May 04, Fred Milano rated it really liked it Aug 05, Kartik rated it liked it Feb 14, Chris rated it it was amazing Sep 04, Rickard Lindroth rated it really liked it Jun 06, Effe rated it it was ok Dec 10, rraps Nick Lagrow rated it it was ok Jun 02, Reg rated it it was amazing Mar 14, Beanyoung Chen rated it really liked it Apr 22, Michael rated it really liked it Jun 02, Daniel Souza rated it it was amazing Oct 13, Todd rated it really liked it Aug 15, Harold King rated it it was amazing Oct 17, Robert Bachmann rated it really liked it Jan 25, Dan Bennett rated it really liked it May 14, Fxrcode rated it it was amazing Jul 29, Peter Heinrich rated it liked it Jun 24, Ritesh Pandey rated it really liked it Sep 26, Asa Myth rated it liked it Nov 06, There are no discussion topics on this book yet.
If you like books and love to build cool products, we may be looking for you.
Books by Andrew Koenig. Trivia About C Traps and Pitfalls. No trivia or quizzes yet. Quotes from C Traps and Pitfalls. Just a moment while we sign you in to your Goodreads account.