or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
48 used & new from $7.20

Have one to sell? Sell yours here
 
   
C Traps and Pitfalls
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

C Traps and Pitfalls (Paperback)

~ (Author)
4.0 out of 5 stars  See all reviews (11 customer reviews)

List Price: $39.99
Price: $27.09 & this item ships for FREE with Super Saver Shipping. Details
You Save: $12.90 (32%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Monday, November 30? Choose One-Day Shipping at checkout. Details
Ordering for Christmas? To ensure delivery by December 24, choose FREE Super Saver Shipping at checkout. Read more about holiday shipping.

18 new from $18.50 30 used from $7.20

Frequently Bought Together

C Traps and Pitfalls + Expert C Programming + The C Puzzle Book
Price For All Three: $72.70

Show availability and shipping details

  • This item: C Traps and Pitfalls by Andrew Koenig

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Expert C Programming by Peter van der Linden

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • The C Puzzle Book by Alan R. Feuer

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Expert C Programming

Expert C Programming

by Peter van der Linden
4.5 out of 5 stars (84)  $29.12
The C Puzzle Book

The C Puzzle Book

by Alan R. Feuer
4.6 out of 5 stars (12)  $16.49
C: A Reference Manual (5th Edition)

C: A Reference Manual (5th Edition)

by Guy L. Steele
4.6 out of 5 stars (47)  $34.65
C Programming FAQs: Frequently Asked Questions

C Programming FAQs: Frequently Asked Questions

by Steve Summit
4.8 out of 5 stars (9)  $29.01
The Standard C Library

The Standard C Library

by P.J. Plauger
4.6 out of 5 stars (13)  $57.03
Explore similar items

Editorial Reviews

Amazon.com Review

C Traps and Pitfalls teaches how the peculiarities of the C language make it easy for the intended behavior of a program and the actual behavior of a program to differ. The book's experienced author, Koenig, follows up with examples and helpful advice on many of these "pitfalls." Each chapter includes exercises for contemplation with accompanying discussions at the end of the book.


Product Description

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

Product Details

  • Paperback: 160 pages
  • Publisher: Addison-Wesley Professional (January 11, 1989)
  • Language: English
  • ISBN-10: 0201179288
  • ISBN-13: 978-0201179286
  • Product Dimensions: 9.2 x 6 x 0.4 inches
  • Shipping Weight: 8.5 ounces (View shipping rates and policies)
  • Average Customer Review: 4.0 out of 5 stars  See all reviews (11 customer reviews)
  • Amazon.com Sales Rank: #580,046 in Books (See Bestsellers in Books)

More About the Author

Andrew Koenig
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Andrew Koenig Page

Look Inside This Book


What Do Customers Ultimately Buy After Viewing This Item?

C Traps and Pitfalls
52% buy the item featured on this page:
C Traps and Pitfalls 4.0 out of 5 stars (11)
$27.09
Expert C Programming
18% buy
Expert C Programming 4.5 out of 5 stars (84)
$29.12
C: A Reference Manual (5th Edition)
12% buy
C: A Reference Manual (5th Edition) 4.6 out of 5 stars (47)
$34.65
The C Puzzle Book
11% buy
The C Puzzle Book 4.6 out of 5 stars (12)
$16.49

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

11 Reviews
5 star:
 (5)
4 star:
 (3)
3 star:
 (1)
2 star:
 (2)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.0 out of 5 stars (11 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
18 of 18 people found the following review helpful:
5.0 out of 5 stars You must read this book., December 27, 1999
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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
17 of 18 people found the following review helpful:
5.0 out of 5 stars Enormously entertaining and exceedingly helpful!, May 13, 1997
By A Customer
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 Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
3 of 3 people found the following review helpful:
4.0 out of 5 stars Know What You're Doing, December 4, 2006
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.)
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars Old, but useful
Most traps and tricks are well known, but it's always good programming practice to rememeber them.
So reading this book (also for experienced programmers) is suggested to... Read more
Published 11 months ago by bispa

2.0 out of 5 stars Good book for novice C programmers
I'd recommend this book for novice C programmers, people with two or less years of coding experience. Read more
Published 12 months ago by scott-gamer

5.0 out of 5 stars Nice little book
To preface my review, I learned how to program in C four years ago as an undergraduate engineer, but didn't really get into it until I started my graduate studies about a year and... Read more
Published 23 months ago by Lance C. Hibbeler

3.0 out of 5 stars A good book for Intermediate C programmer
I recommend this for programmers having 1 to 4 years experience of writing program in C. Doesn't matter even if it was academic years :-). Read more
Published on March 10, 2007 by Sumit Pandya

2.0 out of 5 stars What A Disappointment
I ordered this book recently. It turned out to be a complete disappointment because of the following reasons:

(1) the book is thin and does not justify the high price... Read more
Published on July 12, 2006 by Book worm

5.0 out of 5 stars a must read for c programmers
This is a very interesting book. It's titled "c traps and pitfalls", yet talks all about the beauty of c. Read more
Published on January 10, 2004

4.0 out of 5 stars Obviously a must have, but maybe just to keep.
This book is a must have and you must have read it at least once. Then again, I have read it once and will only use it as a quick reference. Read more
Published on December 19, 2002 by esbach_w

5.0 out of 5 stars A rare and unusual book for experienced programmers.
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... Read more
Published on July 23, 1999

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Textbooks for Kindle DX? 65 2 days ago
textbook scam 77 7 days ago
Anyone need psychology testbook- trying to sell a used copy 2 13 days ago
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.