Programming Operators

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