() | [] | -> | . | |||||||
! | ~ | ++ | -- | + | - | * | & | sizeof | ||
* | / | % | ||||||||
+ | - | |||||||||
<< | >> | |||||||||
< | <= | >= | > | |||||||
== | != | |||||||||
& | ||||||||||
^ | ||||||||||
| | ||||||||||
&& | ||||||||||
|| | ||||||||||
?: | ||||||||||
= | += | -= | *= | /= | %= | &= | ^= | |= | <<= | >>= |
, |
Lary Huang has told me that the postfix unary -- and postfix unary ++ have a higher precedence than the prefix unary -- and prefix unary ++.
Group | Operator | Description | Example |
---|---|---|---|
Membership. | |||
() | Function call. | count = function(4,3); | |
[] | Array. | value = array[5] + increment; | |
-> | Structure pointer. | ||
. | Structure member. | ||
Unary. | |||
! | Logical NOT | ||
~ | |||
++ | Increment. | ||
-- | Decrement. | ||
+ | |||
- | |||
* | Pointer to data | ||
& | Address of a variable. | ||
sizeof | |||
(type) | type cast. | ||
Binary. | |||
* | Multiply. | ||
/ | Divide. | ||
% | Modulo. | ||
Binary. | |||
+ | Addition | ||
- | Subtraction. | ||
Bitwise | |||
<< | Shift left. | ||
>> | Shift Right. | ||
Relational. | |||
< | Less than. | ||
> | Greater than. | ||
<= | Less than or equal too. | ||
>= | Greater than or equal too. | ||
== | Equal too. | ||
!= | Not equal too. | ||
More Bitwise | |||
& | bitwise AND | ||
^ | bitwise Excusive OR | ||
| | bitwise OR | ||
Logical. | |||
&& | Logical AND | ||
Logical. | |||
|| | Logical OR | ||
Conditional | |||
? : | Conditional construct. | ||
Assignment | |||
= | Equals | ||
+= | assignment | ||
-= | assignment | ||
*= | assignment | ||
/= | assignment | ||
%= | assignment | ||
&= | assignment | ||
^= | assignment | ||
|= | assignment | ||
<<= | assignment | ||
>>= | assignment | ||
Series | |||
, | Comma |
Top | Master Index | Keywords | Functions |