Hi guys
I had a quiestain on one of the mock exams I'm doing on which are "Shorcut Circuit" operators.
1. &
2. |
3. ||
I thought I knew what the shortcut circuit oprators means:
If the left side is true, we don't avaluate the right side.
I gave the answer | and || BUT the
test gave the answer & and ||.
How come & is a shortcut circuit operator?
When we have: if(true & false) we still have to avaluate the right side and the result will be false.
Can someone solve me this dilema? (:
Thnx in advance
Dror (: