C Brain Teasers (Pragmatic Bookshelf)

PragmaticBookshelf
25 puzzles that will make you a better C programmer by challenging your knowledge of the language, and explaining the technical details of each solution.

Dan Gookin @dgookin

edited by Don N. Hagist @dhagist

You thought you knew C, but can you solve 25 puzzles in this popular programming language? Noted C programmer and author Dan Gookin provides a series of pointed questions, puzzles, and problems to keep your C programming skills sharp. Each one will provide insight into various aspects of handling strings, numeric operations, and other activities, giving you techniques to take the best advantage of all C has to offer. Challenge yourself, and get to know some powerful tricks and details for writing better, faster, more accurate C code.

Most C programming books present the information sequentially, teaching you the right way to code and only rarely describing what could go wrong. In this book, the goal is to find out what did go wrong—or what potentially goes right. Explore interesting and unusual programming concepts and approaches with small, to-the-point, programs and exercises. Hone your C programming skills and expand your knowledge.

By working through the brain teasers in this book, you’ll fill in gaps in your knowledge and work with advanced concepts such as pointers and recursion. All of the teaser topics were selected to give you food for thought, explaining the technical details behind each puzzle. Look at a code sample and try to guess what output it will give. Code it yourself and see the result. Is it what you expected? Then read the author’s lighthearted explanation of exactly why the language does what it does, and how you can take advantage of it. You’ll come away with a much better understanding of how the language works, and how to use it for efficient and effective programming.


Dan Gookin has been writing about technology for over 40 years. Perhaps the most famous of his over 170 titles is the original DOS For Dummies, published in 1991, with millions of copies in print in over 30 languages. Beyond being a successful technology author, Dan serves as an instructor for the online training company LinkedIn Learning.


Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

Latest Threads About This Book Top

javimazzaf
@dgookin Suggestion: The fact that surprised me the most on this example is that formatting an integer as float (printf(“%f”, (int) 1)) ...
New
PragmaticBookshelf
25 puzzles that will make you a better C programmer by challenging your knowledge of the language, and explaining the technical details o...
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

javimazzaf
@dgookin Suggestion: The fact that surprised me the most on this example is that formatting an integer as float (printf(“%f”, (int) 1)) ...
New

Most Active Last Three Years Top

PragmaticBookshelf
25 puzzles that will make you a better C programmer by challenging your knowledge of the language, and explaining the technical details o...
New

Most Active Over Three Years Top

Book Info

Publisher: Pragmatic Bookshelf
Tag: #book-c-brain-teasers
Threads: 2

Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.