Setup A temporary helper tries to wander into the whole program.
Punchline The fence is a polite "please stay here" — nothing personal.
extern
main
::
Setup Two laboratories both have a tool named "completed."
Punchline Give each tool its own door before the names start bumping into each other.
+ - * / %
7 / 2
%
< <= > >= == !=
total < 20
bool
&& \|\| !
a && b
= += -= *= /= %=
total += 5
++ --
++i
i++
{ }
total < 20 && grouped > 0
total < (20 && grouped) > 0
(total < 20) && (grouped > 0)
((total < 20) && grouped) > 0
total < ((20 && grouped) > 0)
Relational operators bind tighter than &&, so both comparisons finish before the logical operator combines them.
&&
Setup Two people read the same arithmetic line and take different routes.
Punchline Parentheses are the road signs of expression evaluation.