Unary and Binary Operator Table

Below you’ll find all the unary and binary operators in one easy table:

Operator

Name

Type

!

Logical NOT

Unary

&

Address-of

Unary

( )

Cast Operator

Unary

*

Pointer dereference

Unary

+

Unary Plus

Unary

++

Increment

Unary

Unary negation

Unary

––

Decrement 1

Unary

~

complement

Unary

,

Comma

Binary

!=

Inequality

Binary

%

Modulus

Binary

%=

Modulus assignment

Binary

&

Bitwise AND

Binary

&&

Logical AND

Binary

&=

Bitwise AND assignment

Binary

*

Multiplication

Binary

*=

Multiplication assignment

Binary

+

Addition

Binary

+=

Addition assignment

Binary

Subtraction

Binary

–=

Subtraction assignment

Binary

–>

Member selection

Binary

–>*

Pointer-to-member selection

Binary

/

Division

Binary

/=

Division assignment

Binary

<

Less than

Binary

<<

Left shift

Binary

<<=

Left shift assignment

Binary

<=

Less than or equal to

Binary

=

Assignment

Binary

==

Equality

Binary

>

Greater than

Binary

>=

Greater than or equal to

Binary

>>

Right shift

Binary

>>=

Right shift assignment

Binary

^

Exclusive OR

Binary

^=

Exclusive OR assignment

Binary

|

Bitwise inclusive OR

Binary

|=

Bitwise inclusive OR assignment

Binary

||

Logical OR

Binary

This entry was posted in C Language Reference. 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.

There are currently 4 responses to “Unary and Binary Operator Table”

Why not let us know what you think by adding your own comment!

  1. sadia on May 8th, 2011:

    thnxxxxxxxxxxxxxxxxxxxxxx

  2. varsha on August 31st, 2011:

    thanq it’s very useful 2 us :-D

  3. sudhakar on September 22nd, 2011:

    it is very helpfull

  4. ramesh on January 28th, 2012:

    really, very good

Leave a Reply: