James Hawkins wrote:
The parentheses are not needed? You better check your
C book for
operator precedence. && has higher precedence than ||, so in this
case the parentheses are needed. This is also why using parentheses
is a good idea, because you never know if the original author has any
idea about operator precedence. The use of parentheses makes the
original intention clear to other authors.
An absolutely perfect example which nicely backs up my original argument.
I feel I now have nothing more to add. :)
Ged.