Programming Operators Tutorial
Operators (IN PRECEDENCE)
- paranthesis
( ), [ ], ::(scope resolution), .(dot operator)
- unary R------>L
!, ~(telda),+, -, ++(increment), --(decrement)
- Arithmatic/binary L-->R
*, /, %(modules), +, -
- Bitwise operator
&(and), ^ (xor), ¦(pipe/or)
- Relational operator
<, >, <=, >= , ==, !=
- Bitwise operator
<<(left shift ), >>(right shift)
- logical operators
&&(ampersand), ¦¦(concation)
- conditional operators/ ternary
? : (short hand for if else )
- assignmenr operators R------>L
=, +=, *=, /=, %=, -=, &=, !=, ^=
Expression:
exp= const+ oper+id
Assignment Statement:
when we use an assignment operator in a statement (=)
UNIARY
RELATIONAL
BITWISE

