Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak

C Precedence Table

[chongo's home] [Astronomy] [Mathematics] [Prime Numbers] [Programming] [Technology] [contacting Landon]

NOTE: See also the general page on C Programming.

The follow is the order of precedence, from highest to lowest, for the C programming language:

Operator Associativity
(expr) [index] -> . Left ==> Right
! ~ ++ -- (type) sizeof
Unary operator: + - * & Right <== Left
* / % Left ==> Right
+ - Left ==> Right
<< >> Left ==> right
< <= > >= Left ==> Right
== != Left ==> Right
Binary operator: & Left ==> Right
Binary operator: ^ Left ==> Right
Binary operator: | Left ==> Right
&& Left ==> Right
|| Left ==> Right
expr ? true_expr : false_expr Right <== Left
+= -= *= /= <<=
&= ^= |= %= >>= =
Right <== Left
, Left ==> Right

Unary operator:

Unary
Operator Example
+ +23209
- -value
* *pointer
& &variable

Binary operator :

Binary
Operator Example
& t = 0xCC; p = 0xAA;
(t & p) == 0x88;
^ r = 0xF0; w = 0xCC;
(r ^ w) == 0x3C;
| x = 0x99; y = 0x96;
(x | y) == 0x9F;

© 1994-2013 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 8.1 $ $Date: 2022年07月07日 23:13:15 $

AltStyle によって変換されたページ (->オリジナル) /