-
Boolean expressions are evaluated from left to right (the same in Java), so it is totally OK to write code like
if(a < x.size() && x[a]){ ... }
where
x
is a vector. -
There is no
&&=
and||=
operators in C++, instead you can use&=
and|=
. Though&=
and|=
are not specially for …