+ 3
In C++ is it correct to conclude when first statement in 'if' with OR operation returns true, the rest is disregarded?
x = 3, y = 2; if(++x>0 || ++y>2)
3 Respuestas
+ 4
In OR operator when first condition is satisfied then the complier does not test the second condition
+ 4
In case if first condition isn't satisfied, then the compiler move on to check next condition otherwise as stated by Sami
+ 1
Yes, as soon as one of the conditions is fulfilled, the operator returns true.