Rather than worry about precedence , I always use parentheses whenever there is the slightest doubt. This makes the meaning and intent of the code clear to me, the compiler, and to anyone else reading it -- even if they have no knowledge of the arcane rules of precedence