First page Back Continue Last page Overview Graphics

Advarsler, udrag: 514

514 Unusual use of a Boolean -- An argument to an arithmetic operator (+ - / * %) or a bit-wise logical operator (| & ^) was a Boolean. This can often happen by accident as in:

if( flags & 4 == 0 )

where the ==, having higher precedence than &, is done first (to the puzzlement of the programmer).