REVIEW - C Brain Teasers - Exercise Your Mind


Title:

C Brain Teasers

Exercise Your Mind

Author:

Dan Gookin

ISBN:

9798888650486

Publisher:

The Pragmatic Programmers (2024)

Pages:

118

Reviewer:

Ahto Truu

Reviewed:

March 2026

Rating:

★☆☆☆☆


Not recommended.

In keeping with the Brain Teasers/Puzzlers format, each chapter of this book contains a short (less than half a page) program and the reader is invited to guess what it does before flipping the page and looking at the author’s explanation (which takes up less than two pages in most cases) and some references for further reading. Unfortunately, it’s hard to find a reason to recommend this incarnation of the model.

The book kicks off with a question about the printf format specifiers and then erroneously claims that the ‘width’ part of the %[width][.precision]f specifier applies only to the integer part. It continues in the next chapter with the claim that 5/4 evaluates to 0 because 5 is not divisible by 4. About a third of the remaining 23 chapters also contain errors, though less egregious than the opening salvo. I also know for a fact that some of the mistakes were pointed out to the author during the beta process, but they all remain uncorrected in the final version.

I don’t particularly like the author’s obvious disdain for mathematics either. It could be interpreted as an attempt to be humorous and written off as a matter of taste, but trivial errors, such as repeatedly mixing up the base and the power in exponentiations, seem to indicate genuine ignorance instead.

Overall, perhaps the only good use of this volume would be training material for aspiring technical reviewers and proofreaders of C programming books, which is a very niche market indeed.

Website: https://pragprog.com/titles/cbrain/c-brain-teasers/






Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.