![]() |
.. (לתיקייה המכילה) | |
How should the dangling else problem be resolved? | |
The dangling else should be resolved as in the language C - by associating the else with the nearest if Meaning that: if (a) if (b) statement1; else statement2; is interpreted as: if (a) { if (b) statement1; else statement2; } |
In the operator precedence and associativity table, the () operator has two entries with different associativities. Which one should we choose? | |
The only relevant entry is the one regarding casting. |