short-circuit evaluation
&& and || stop as soon as the answer is known.
With short-circuit evaluation, a && b skips b if a is false and a || b skips b if a is true, so a guard like p && p->ok() is safe.
&& and || stop as soon as the answer is known.
With short-circuit evaluation, a && b skips b if a is false and a || b skips b if a is true, so a guard like p && p->ok() is safe.