C++ · Decisions

Nested ifs and the dangling else

Some decisions are only asked after another one has been answered, and then braces decide which test each else answers.