Arithmetic Operators
Code:
[+] addition operator (also used for concatenation – see later tutorial)
[-] subtraction operator[*] multiplication operator
[/] division operator
[%] modulus operator (used to find the remainder)
[=] assignment operator (NOT “equal to”)
Logical Operators
Code:
[==] equal to operator
[<] less than operator
[>] greater than operator
[<=] less than or equal to operator
[>=] greater than or equal to operator
[!= ] not equal to
[!] negates a Boolean value
Bitwise Operators
Code:
[&] AND operator
[|] (pipe) exclusive OR operator
[^] inclusive OR operator
Pre and Post Operators (seen in loops)
Code:
[++] auto increment operator
[--] auto decrement operator
Conditional Operators