Friday, November 11, 2011

C programming operator

1) Mathemitacal operator:
    a) Binary:
        1) Addition (+)
        2) Subtraction (-)
        3) Multiplication (*)
        4) Division (/)
        5) Modulus (%)
    b) Unary:
        1) (++)
        2) (--)
        3) (-)

2) Assignment operator:
        1) Equal to(=)

3) Relational operator:
        1) Equal (==)
        2) Greater than (>)
        3) Less than (<)
        4) Greater than or equal to (>=)
        5) Less than or equal to (<=)
        6) Not equal to (!=)
4) Logical operator:
        1) AND (&&)
        2) OR (||)
        3) NOT (!)
5) Conditional operator:
        1) Question mark (?)
6) Bitwise operator:
        1) Shift operator (<<, >>)
        2) Bitwaise AND (&)
        3) Bitwaise OR (|)
        4) Bitwaise Compliment
7) Sizeof operator:
        1) sizeof()
8) Comma operator:
        1) comma (,)

1 comment:

Comment of this content!