Skip to content
  • Home
  • Shop
  • About Us
  • Search
  • Contact Us
  • Login
View cart
  • Login
Close
  • Home
  • Shop
  • About Us
  • Search
  • Contact Us
Home C++ Brain Teasers: Exercise Your Mind - Paperback
C++ Brain Teasers: Exercise Your Mind
  • Algorithms,
  • Books,
  • Computers,
  • Games & Activities,
  • Programming,
  • Puzzles,

C++ Brain Teasers: Exercise Your Mind - Paperback

Original price $59.44 - Original price $59.44
Original price
$59.44
$59.44 - $59.44
Current price $59.44
| /
Availability: In Stock
SKU 9798888650516
  • Description
  • Reviews ()

Additional information

Report copyright infringement

by Anders Schau Knatten (Author)

C++ is famous for getting all the default behaviors wrong and for sometimes making demons fly out of your nose. Through 25 puzzles, from the useful to the outright weird, we explore some of C++'s most interesting quirks. How does initialization actually work? Do temporaries even exist? Why is +!!"" a valid expression in C++? As you work through each puzzle, you will peel off some of the layers of complexity of C++, getting a fundamental understanding of how the language works. This will help you write better code and recognize issues more easily while debugging.

Each puzzle in the book is a complete, seemingly simple C++ program, but can you figure out the output for each, or will the answers stump you? Most of the programs compile and have deterministic, though sometimes surprising, output. Some might, however, have undefined behavior, where anything can happen, including making demons fly out of your nose! Yet others might have unspecified behavior with output that is not completely deterministic; we just know nothing as bad as nasal demons will happen.

All puzzles are accompanied by detailed discussions, taking a look under the hood at what exactly is going on to help you understand more about C++'s unexpected behaviors, as well as fundamental concepts like initialization, overload resolution, and implicit conversions. For the non-deterministic cases, we'll explore some typical behaviors one can expect to see in practice, what causes them, and why they shouldn't be relied on.

After working through the book, you'll have tools and techniques to help you write better and safer code, and a better understanding of the fundamentals of the language, the background for some of C++'s apparent weirdness, and a better feel for identifying bugs and unsafe code in your own programs.

What You Need:

The book assumes basic knowledge of C++. If you want to run the programs yourself, you can use either a local C++ compiler or the online compilers at https: //godbolt.org.

Number of Pages: 140
Dimensions: 0.3 x 9.25 x 7.5 IN
Publication Date: July 09, 2024

You may also like

  • !Ah y Le Lo Lay, Le Lo Ley! Musica Tipica de Puerto Rico

    !Ah y Le Lo Lay, Le Lo Ley! Musica Tipica de Puerto Rico - Paperback

    In stock

    Report copyright infringementby Nereida Ayala-Guzman (Author)Pretendemos por medio de "Ahi Le Lo Lai Le Lo Lei, Música Típica de Puerto Rico", resa...

    View full details
    Original price $38.88 - Original price $38.88
    Original price
    $38.88
    $38.88 - $38.88
    Current price $38.88
    | /
    Original price $38.88 - Original price $38.88
    Original price
    $38.88
    $38.88 - $38.88
    Current price $38.88
    | /
  • !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage

    !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage - Hardcover

    In stock

    Report copyright infringementby William M. Clarkson (Author)A novel approach--very useful for quick reference.--Mark Goldin Associate Professor of ...

    View full details
    Original price $31.27 - Original price $31.27
    Original price
    $31.27
    $31.27 - $31.27
    Current price $31.27
    | /
    Original price $31.27 - Original price $31.27
    Original price
    $31.27
    $31.27 - $31.27
    Current price $31.27
    | /
  • !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage

    !Búscalo! (Look It Up!): A Quick Reference Guide to Spanish Grammar and Usage - Paperback

    In stock

    Report copyright infringementby William M. Clarkson (Author)"A novel approach--very useful for quick reference." --Mark Goldin, Associate Professo...

    View full details
    Original price $17.23 - Original price $17.23
    Original price
    $17.23
    $17.23 - $17.23
    Current price $17.23
    | /
    Original price $17.23 - Original price $17.23
    Original price
    $17.23
    $17.23 - $17.23
    Current price $17.23
    | /
  • !Eureka!

    !Eureka! - Hardcover

    In stock

    Report copyright infringementby Peter Santino (Author)A Practical Guide to Understanding and UtilizingTraditional Techniques of Plaster Repair &...

    View full details
    Original price $46.29 - Original price $46.29
    Original price
    $46.29
    $46.29 - $46.29
    Current price $46.29
    | /
    Original price $46.29 - Original price $46.29
    Original price
    $46.29
    $46.29 - $46.29
    Current price $46.29
    | /
  • !LETTER TO THE UNITED NATIONS! !REPARATIONS NOW! The Many Reasons Why: St. Mark's-in-the-Bowery Church, The Dutch Royal Family, The Kingdom of the Net

    !LETTER TO THE UNITED NATIONS! !REPARATIONS NOW! The Many Reasons Why: St. Mark's-in-the-Bowery Church, The Dutch Royal Family, The Kingdom of the Net - Paperback

    In stock

    Report copyright infringementby K. F. Harris (Author)This book !Letter to the United Nations! !Reparations Now! The Many Reasons Why: St. Mark's-in...

    View full details
    Original price $86.38 - Original price $86.38
    Original price
    $86.38
    $86.38 - $86.38
    Current price $86.38
    | /
    Original price $86.38 - Original price $86.38
    Original price
    $86.38
    $86.38 - $86.38
    Current price $86.38
    | /
Shop collection

#DiscoverGreatBooks


Discover books that inspire growth, creativity, and imagination for readers of all ages.

Main menu

  • Home
  • Shop
  • About Us
  • Search
  • Contact Us

Footer menu

  • Search

Follow us

Find us on Facebook Find us on Threads Find us on Telegram Find us on Instagram Find us on LinkedIn Find us on Twitter
  • Search

Copyright © 2026 Selloorium. All rights reserved.

  • Choosing a selection results in a full page refresh.
  • Opens in a new window.