£24.92
  • RRP: £25.99
  • You Save: £1.07 (4%)
FREE Delivery in the UK.
Only 1 left in stock (more on the way).
Dispatched from and sold by Amazon.
Gift-wrap available.
Quantity:1
Trade in your item
Get a £0.02
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

C Traps and Pitfalls Paperback – 1 Jan 1989


See all 2 formats and editions Hide other formats and editions
Amazon Price New from Used from
Paperback
"Please retry"
£24.92
£19.13 £0.04

Frequently Bought Together

C Traps and Pitfalls + Safer C: Developing Software for High-Integrity and Safety-Critical Systems (McGraw-Hill International Series in Software Engineering)
Price For Both: £49.91

Buy the selected items together


Trade In this Item for up to £0.02
Trade in C Traps and Pitfalls for an Amazon Gift Card of up to £0.02, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Product details

  • Paperback: 160 pages
  • Publisher: Addison Wesley; 1 edition (1 Jan 1989)
  • Language: English
  • ISBN-10: 0201179288
  • ISBN-13: 978-0201179286
  • Product Dimensions: 15 x 1.3 x 22.6 cm
  • Average Customer Review: 3.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 193,059 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Author

Discover books, learn about writers, and more.

Product Description

From the Author

The publisher's web site has more to say about this book.
The information available includes an image of the cover, and copies of the preface and table of contents. See http://heg-school.aw.com/cseng/authors/koenig/traps/traps.html

From the Back Cover

Even C experts come across problems that require days ofdebugging to fix. This book helps to prevent such problems byshowing how C programmers get themselves into trouble. Each ofthe book's many examples has trapped a professional programmer.

In addition to its examples, C Traps and Pitfalls offers adviceon:

  • avoiding off-by-one errors
  • understanding and constructing function declarations
  • understanding the subtle relationship between pointers andarrays

Distilled from the author's experience over a decade ofprogramming in C, this book is an ideal resource for anyone,novice or expert, who has ever written a C program.



0201179288B04062001


What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

3.5 out of 5 stars
5 star
1
4 star
0
3 star
0
2 star
1
1 star
0
See both customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

5 of 5 people found the following review helpful By A Customer on 14 May 1997
Format: Paperback
This is among the five "must have" books on the astute C programmer's bookshelf. Actually, it spends little time on the shelf since one refers to it time and time again. This slim volume packs a lot of information about those "gotchas" that still "getcha" (when you least expect it). The Introduction is "Chapter 0", your first hint that Koenig knows and respects the subject. His treatment of unscrambling complex declarations is especially good.

Why a 9 instead of a 10? Simple. Andy: please release a new version! The ANSI/ISO standard is almost ten years old. :)
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 6 people found the following review helpful By D. Richerby on 8 Nov 2001
Format: Paperback
This book deals almost exclusively with pre-ISO C and much of what it has to say is, as a result, no longer relevant unless you're trying to convert old code into ISO C. The book is also extremely poor value for money at 16.5 pence per page. This is all a great shame as it's very well-written and the author's knowledge of his subject is impressive.
A version updated for ISO C would be a really great book. In the mean time, buy Peter van der Linden's ``Expert C Programming'' instead. It's over twice as thick and only slightly more expensive.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on Amazon.com (beta)

Amazon.com: 20 reviews
20 of 21 people found the following review helpful
You must read this book. 27 Dec 1999
By From_Plano_TX - Published on Amazon.com
Format: Paperback
If you program in C or C++, you must read this book if you want to consider yourself a superior programmer. If you are a college student, definitely read this book. Koenig fills in a lot of gaps left by authors of introductory books on C or C++. Why do I mention C++? Because C++ is far more than just objects and classes. The lower level implementation of functions is still basically C programming. He includes chapters on linkage, the preprocessor, and portability. It is a short book that is definitely worth reading.
19 of 20 people found the following review helpful
Enormously entertaining and exceedingly helpful! 14 May 1997
By A Customer - Published on Amazon.com
Format: Paperback
This is among the five "must have" books on the astute C programmer's bookshelf. Actually, it spends little time on the shelf since one refers to it time and time again. This slim volume packs a lot of information about those "gotchas" that still "getcha" (when you least expect it). The Introduction is "Chapter 0", your first hint that Koenig knows and respects the subject. His treatment of unscrambling complex declarations is especially good.

Why a 9 instead of a 10? Simple. Andy: please release a new version! The ANSI/ISO standard is almost ten years old. :)
14 of 16 people found the following review helpful
Good book for novice C programmers 21 Nov 2008
By scott-gamer - Published on Amazon.com
Format: Paperback
I'd recommend this book for novice C programmers, people with two or less years of coding experience. However, this 1989 book focuses on pre-ANSI C, so the novice would need to be guided by someone that knows the history of C. Some of his statements are false when applied to ANSI C with prototypes (e.g., p.139, it _is_ possible to pass a char argument, if there is a function prototype). I read through and did the problems in this slim book in about three hours. It does have a few nuggets of value, and introduced me to a bug I'd not seen before, the reverse of the "= for ==" bug:
while( (x == fgetc(f)) != EOF )
4 of 4 people found the following review helpful
Know What You're Doing 5 Dec 2006
By talkaboutquality - Published on Amazon.com
Format: Paperback
If you have to write in C, then yes, it is still worth reading a good, short book about C even if it was written in 1989. It can get a bit boring to read the details of selected problems and solutions in C cover-to-cover, but it's only 100 pages. An experienced C programmer will probably know many of these answers, and can skim over what's not new. But if you hit even one pitfall which is new to you, or which you have not made the effort to avoid, then the book was worth it. The bonus is the last chapter, "Advice". It's only a few pages, and is followed by answers to exercises. But I think it has more meaning if you do leave it until the end of your reading.

(One caveat: Since Koenig was writing before long variable names were common, his examples do not serve as best practice for modern variable-naming in an IDE with auto-complete.)
13 of 17 people found the following review helpful
A rare and unusual book for experienced programmers. 23 July 1999
By A Customer - Published on Amazon.com
Format: Paperback
Along with Holub's 'The C Companion', this is one of the few programming books that I've read in 13 years of C programming that talks about real programming issues instead of simply rehashing what a for loop is. A must read for C programmers.
Were these reviews helpful? Let us know


Feedback