Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
51 used & new from $4.40

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 yours here.
 
  

C Traps and Pitfalls (Paperback)

by Andrew Koenig (Author)
4.0 out of 5 stars See all reviews (11 customer reviews)

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

Only 4 left in stock--order soon (more on the way).

Want it delivered Monday, July 13? Choose One-Day Shipping at checkout. Details
22 new from $18.00 29 used from $4.40

Frequently Bought Together

C Traps and Pitfalls + Expert C Programming + C: A Reference Manual (5th Edition)
Price For All Three: $100.75

Customers Who Bought This Item Also Bought

The C Puzzle Book

The C Puzzle Book

by Alan R. Feuer
4.6 out of 5 stars (12)  $16.49
C Programming FAQs: Frequently Asked Questions

C Programming FAQs: Frequently Asked Questions

by Steve Summit
4.8 out of 5 stars (9)  $28.62
C: A Reference Manual (5th Edition)

C: A Reference Manual (5th Edition)

by Samuel P. Harbison
4.6 out of 5 stars (45)  $34.65
Pointers on C

Pointers on C

by Kenneth Reek
4.7 out of 5 stars (23)  $80.02
C Interfaces and Implementations: Techniques for Creating Reusable Software (Addison-Wesley Professional Computing Series)

C Interfaces and Implementations: Techniques for Creating Reusable Software (Addison-Wesley Professional Computing Series)

by David R. Hanson
4.2 out of 5 stars (12)  $43.99
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

See all Editorial Reviews

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: #402,190 in Books (See Bestsellers in Books)

Look Inside This Book


What Do Customers Ultimately Buy After Viewing This Item?

C Traps and Pitfalls
51% buy the item featured on this page:
C Traps and Pitfalls 4.0 out of 5 stars (11)
$32.57
Expert C Programming
17% buy
Expert C Programming 4.5 out of 5 stars (83)
$33.53
The C Puzzle Book
11% buy
The C Puzzle Book 4.6 out of 5 stars (12)
$16.49
C: A Reference Manual (5th Edition)
11% buy
C: A Reference Manual (5th Edition) 4.6 out of 5 stars (45)
$34.65

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

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

 
17 of 17 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)



 
16 of 17 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)



 
11 of 15 people found the following review helpful:
5.0 out of 5 stars A rare and unusual book for experienced programmers., July 23, 1999
By A Customer
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.
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 6 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 7 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 18 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

4.0 out of 5 stars Know What You're Doing
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. Read more
Published on December 5, 2006 by T. Harris

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 11, 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

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Cut Grass like Butter

Shop all Oregon mower blades
Keep your lawn mower sharp and ready to go by replacing that old mower blade with an Oregon Gator mower blade. Choose from Gator Mulcher or Fusion blade technology designed to fit almost any lawn mower.

Shop all Oregon mower blades

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Strengthen Your Joints

Shop for biscuit joiners
With a biscuit joiner you can create joints in a fraction of the time it takes using more traditional woodworking techniques.

Shop for biscuit joiners

 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

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.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

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

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Glenn Beck's Common Sense
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning
The Lost Symbol
The Lost Symbol by Dan Brown
$16.17

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates