[SOLVED] Trouble understanding or expressions
I am supposed to decide which of the following statements will not be evaluated in this expression:
5 < 3 || 6 < 7 || 5 > 3
I understand that in short-circuit evaluation, as soon as the value for the entire expression can be determined, the evaluation stops. So what I am guessing is that:
5 < 3 is false so the evaluation continues
6 < 7 is true so the value for the expression will be true and the evaluation stops due to short-circuit evaluation, therefore
5 > 3 is not evaluated.
Is this correct? I really am not sure if I have the concept right or not. I would appreciate any help with making sure I understand this.