The dangling else ambiguity in the if-statement