The professional programmer’s Deitel® guide to procedural programming in C through 130 working code examples

Written for programmers with a background in high-level language programming, this book applies the Deitel signature live-code approach to teaching the C language and the C Standard Library. The book presents the concepts in the context of fully tested programs, complete with syntax shading, code highlighting, code walkthroughs and program outputs. The book features approximately 5,000 lines of proven C code and hundreds of savvy tips that will help you build robust applications.

Start with an introduction to C, then rapidly move on to more advanced topics, including building custom data structures, the Standard Library, select features of the new C11 standard such as multithreading to help you write high-performance applications for today’s multicore systems, and secure C programming sections that show you how to write software that is more robust and less vulnerable. You’ll enjoy the Deitels’ classic treatment of procedural programming. When you’re finished, you’ll have everything you need to start building industrial-strength C applications.

“While C is a complex language, this book does a good job making this material accessible while providing a strong foundation for further learning.” —Robert C. Seacord, Secure Coding Manager at SEI/CERT, author of The CERT C Secure Coding Standard and technical expert for the working group responsible for the C Programming Language Standard

“An excellent introduction to the C programming language, with many clear examples. Pitfalls of the C language are clearly identified and concise programming methods are defined to avoid them.” —John Benito, Blue Pilot Consulting, Inc., and Convener of ISO WG14—the working group responsible for the C Programming Language Standard

“A great introduction to the C programming language and software engineering. It’s fresh and up to date with modern software industry realities.” —Vytautus Leonavicius, Microsoft

“An impressive job explaining a topic as complex as pointers in such an easy-to-understand way. The discussions of secure C programming are valuable.” —José Antonio González Seco, Parliament of Andalusia, Spain

“The extended examples, along with the supporting text, are the best of any of the C books I’ve seen. Running the code for the supplied examples in conjunction with reading the text provides readers with a laboratory for gaining a thorough understanding of how C works.” —Tom Rethard, University of Texas at Arlington

“Introduces C programming and gets you ready for the job market, with best practices and development tips to help you become an able and employable candidate. Nice multi-platform explanation.” —Hemanth H.M., Software Engineer at SonicWALL

“This book is an invaluable resource for both beginning and seasoned programmers. The authors’ approach to explaining concepts, techniques and practices is comprehensive, engaging and easy to understand. This is a must-have book.” —Bin Wang, Department of Computer Science and Engineering, Wright State University

“Continues a tradition of excellence in Deitel texts. It presents C clearly and accurately with a well-organized exposition which builds from simple concepts to ultimately describing the complete language, making the book valuable for experienced programmers. This is an exceptional reference for the C programmer.” —Roy Seyfarth, University of Southern Mississippi

“One of the best C programming books on the market. The live-code approach makes it easy to understand the basics of C programming. I highly recommend this book as both a teaching text and a reference.” —Xiaolong Li, Indiana State University

“I have been teaching introductory programming courses since 1975, and programming in the C language since 1986. In the beginning there were no good textbooks on C—in fact, there weren’t any! When Deitel, C How to Program, 1/e [the textbook first version of this book], came out, we jumped on it—it was at the time clearly the best text on C. The new edition continues a tradition—it’s by far the best student-oriented textbook on programming in the C language—the Deitels have set the standard—again! A thorough, careful, student-oriented treatment of not just the language, but more importantly, the ideas, concepts and techniques of programming! ‘Live code’ is also a big plus, encouraging active participation by the reader. A great book!”—Richard Albright, Goldey-Beacom College

“I like the quality of the writing; it’s polished, well-structured, touches important topics and outlines common mistakes really well. Nice visualization of binary search. The card shuffling example illustrates a solution to the problem with great coding and explanation. Nice example on signal handling.” —Vytautus Leonavicius, Microsoft

“The control statements chapters are excellent. Great coverage of functions. The strings and characters discussion is easy to follow. The writing in the ‘Structures, Unions, Bit Manipulation and Enumerations’ chapter is very clear. The ‘Data Structures’ chapter is well written and the examples are great. The ‘Other Topics’ chapter does a good job closing the coverage of the C language with all those ‘little things.’” —José Antonio González Seco, Parliament of Andalusia, Spain

“Clearly demonstrates important C programming concepts. The introductory chapters are very good. The examples in the ‘Functions’ chapter were good. Just the right amount of coverage of arrays. The C Pointers chapter is well-written; the coverage is quite detailed. Excellent discussion of many of the string functions. Fine chapters on formatted input/output and files. Good introduction to data structures. I was pleased to see a hint at Big O running time in the binary search example. Good information in the preprocessor chapter.” —Dr. John F. Doyle, Indiana University Southeast

“The Deitel book easily provides the clearest and most in-depth approach to standard C programming. With the Deitel C book, readers have a tremendous resource that will enable them to succeed in the professional workplace for years to come.” —William Smith, Tulsa Community College