+ 1
Is relational operator skip next operation when the conditions meet false in (&&) or condition meet true in (||)?
int x = 4, y=5; if (++x>4 || ++y>5){ cout<<y } y = 5? or y = 6?
1 Respuesta
+ 3
yes, for performance when the result is obvios other conditions skipped
so the answer is 5