In either C or C++, is there a conclusive difference between using !(variable) and (!variable) in an if-statement, such as:
if (!(variable)) { .. // do something }
or
if (!variable && !(variable2)) { .. // do something }
such that one version delivers a different result over the other?
The only way it would make a difference is if the variable is an expression, then its a matter of operator precedence. Otherwise
&&has lower precedence than!