Date: Tue, 25 Jan 2005 21:52:37 -0800 From: Michael Sierchio <ducatista@camber-thrust.net> To: Joe Marcus Clarke <marcus@marcuscom.com> Cc: lioux@freebsd.org Subject: Remedial C Message-ID: <41F73025.1020303@camber-thrust.net> In-Reply-To: <1106704507.16118.14.camel@shumai.marcuscom.com> References: <41F6F431.6060005@tenebras.com> <1106704507.16118.14.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Precedence In general, multiply/divide come before add/subtract, and put brackets everywhere else. Ordering of Comparisons 1. <, <=, > and >= 2. == and != 3. && 4. || Precedence of Operators 1. () [] -> . 2. ! ~ ++ -- unary+ unary- * (dereference) & (address) (type-cast) sizeof 3. * (multiply) / % 4. + (add) - (subtract) 5. << , >> 6. < , <= , > , >= 7. == , != 8. & (bitwise and) 9. ^ 10. | 11. && 12. || 13. ?: 14. = += *= /= %= &= ^= |= <<= >>= 15. , (comma)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41F73025.1020303>