Skip to main content

C Traps and Pitfalls

New Image

This book concentrates on programs that don't do what the programmer might have expected. More than that: it will concentrate on particularly easy ways for C programmers to slip up. Programming errors represent places where a program departs from the programmer's mental model of the program. By their very nature they are thus hard to classify. We have tried to group them according to their relevance to various ways of looking at a program. Defensive programming is the basis of this book.