home

Programming Operators Tutorial


Operators (IN PRECEDENCE)

  1. paranthesis

                        ( ), [ ], ::(scope resolution), .(dot operator)

  1. unary    R------>L

!,  ~(telda),+, -, ++(increment), --(decrement)

  1. Arithmatic/binary  L-->R

                        *,   /,   %(modules),                   +,  -

  1. Bitwise operator

                        &(and),  ^ (xor), ¦(pipe/or)

  1. Relational operator

                        <,    >, <=,    >=  ,                                  ==, !=

  1. Bitwise operator

                        <<(left shift ),       >>(right shift)

  1. logical operators

                        &&(ampersand),     ¦¦(concation)

  1. conditional operators/ ternary

                        ?  : (short hand for if else )

  1. assignmenr operators  R------>L

                        =,    +=,  *=,   /=,  %=,   -=,  &=,   !=,   ^=

Expression:

exp= const+ oper+id

Assignment Statement:

when we use an assignment operator in a statement (=)

UNIARY

RELATIONAL

BITWISE


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web design london by dotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com