[vox-tech] logical operator precedence in C?
Chanoch (Ken) Bloom
kbloom at gmail.com
Sat May 22 20:29:47 PDT 2010
On Sat, 2010-05-22 at 20:22 -0700, Brian Lavender wrote:
> in C. What is the order of precendence?
>
> a || b || c && d || e || f
>
> Is it just left to right?
>
> brian
http://www.difranco.net/cop2220/op-prec.htm
&& has higher precedence than ||, so your expression is evaluted as
a || b || (c && d) || e || f
Many other programming languages adopt C's precedence rules.
More information about the vox-tech
mailing list