(ANSI) C Reference – C Operators

A look at the ANSI C operators and their meaning.


++ –>  Increment


— –>  Decrement


+, – –>  Plus, minus


! –>  Logical not


~ –>  Bitwise no


* –>  Multiply


/ –>  Divide


% –>  Modulus


sizeof –>  Size of an object


(type) expr –>  Cast expression to type


<<, >> –>  Left and right shift (bit operations)


>, >=, <, <=, ==, != –>  Comparisons


& –>  Bitwise and


| –>  Bitwise or


^ –>  Bitwise exclusive or


&& –>  Logical and


|| –>  Logical or


expr1 ? expr2 –>  Conditional expression


+=, -=, *=, … –>  Assignment operators


, –>  Expression evaluation separator

This entry was posted in C Operators. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Tweet This! Tweet This! or use to share this post with others.

Comments are closed.