(ANSI) C Reference – C Operators

A look at the ANSI C operators and there 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. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: