// A dangling else binds to the right-most if. if (true) if (false) print "bad"; else print "good"; // out: good if (false) if (true) print "bad"; else print "bad";