Landon Noll looking up Fremont Peak Observatory 0.8m telescope Leonid 2001 meteor squall count at Fremont Peak
custom search of Landon Noll's web sites

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-2022 Landon Curt Noll
chongo (was here) /\oo/\
$Revision: 8.1 $ $Date: 2022/07/07 23:13:15 $