Operators:
1. Arithmetic Operators
Operator Operation
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulo
++ Increment
-- Decrement
2. Assignment Operators
Operator Example Equivalent to
= a = b; a = b;
+= a += b; a = a + b;
-= a -= b; a = a - b;
*= a *= b; a = a * b;
/= a /= b; a = a / b;
%= a %= b; a = a % b;
3. Relational Operators
Operator Meaning
== Is Equal To
!= Not Equal To
> Greater Than
< Less Than
>= Greater Than or Equal To
<= Less Than or Equal To
4. Logical Operators
Operator Meaning
&& And
|| Or
! Not
5. Bitwise Operators
Operator Description
& Binary AND
| Binary OR
^ Binary EXOR
~ Binary One's Complement
<< Binary Shift Left
>> Binary Shift Right
0 Comments