test1() && test2() != test3();
In this example despite of precedence of !=
heigher than &&
the order of evaluation is always: if test1()
then test2 != test3()
.
Why does c++ && operator need priority? Could you provide an example where operator show its pryority but not an evaluation?