C Operators
|
Name
|
Symbol(s)
|
Associativity
|
|
Array subscripting
|
[]
|
Left
|
|
Function call
|
0
|
Left
|
|
Structure and union member
|
. - >
|
Left
|
|
Increment (postfix)
|
++
|
Left
|
|
Decrement (postfix)
|
--
|
Left
|
|
Increment (prefix)
|
++
|
Right
|
|
Decrement (prefix)
|
--
|
Right
|
|
Address
|
&
|
Right
|
|
Indirection
|
*
|
Right
|
|
Unary plus
|
+
|
Right
|
|
Unary minus
|
-
|
Right
|
|
Bitwise complement
|
~
|
Right
|
|
Logical negation
|
!
|
Right
|
|
Size
|
sizeof
|
Right
|
|
Cast
|
0
|
Right
|
|
Multiplicative
|
* / %
|
Left
|
|
Additive
|
+ -
|
Left
|
|
Bitwise shift
|
<< >>
|
Left
|
|
Relational
|
< > <= >=
|
Left
|
|
Equality
|
== ! =
|
Left
|
|
Bitwise and
|
&
|
Left
|
|
Bitwise exclusive or
|
∧
|
Left
|
|
Bitwise inclusive or
|
|
|
Left
|
|
Logical and
|
&&
|
Left
|
|
Logical or
|
II
|
Left
|
|
Conditional
|
? ;
|
Right
|
|
Assignment
|
= *= /= %=
|
Right
|
|
|
+=
-= >>= <=
|
|
|
|
&= ∧=
|=
|
|
|
Comma
|
,
|
Left
|
No comments:
Post a Comment