• Meaning: An Operator is a symbol that is used to provide new values from one or more operands. The output of most operations is a Numeric value or a Boolean.
• There are Four General Classes of Operators: Arithmetic, Relational, Logical, and Bitwise.
Operator
|
Meaning
|
+
|
addition
|
-
|
Subtraction(also unary minus)
|
*
|
multiplication
|
/
|
division
|
%
|
modulus
|
++
|
increment
|
--
|
decrement
|
Operator
|
Meaning
|
==
|
Equal to
|
!=
|
Not equal to
|
>
|
Greater than
|
<
|
Less than
|
>=
|
Greater than or equal to
|
<=
|
Less than or equal to
|
Operator
|
Meaning
|
&
|
AND
|
|
|
OR
|
^
|
XOR(exclusive OR)
|
||
|
Short-circuit Or
|
&&
|
Short-circuit AND
|
!
|
NOT
|
highest
|
|
|
|
()
|
[]
|
|
|
++
|
--
|
~
|
!
|
*
|
/
|
%
|
|
+
|
-
|
|
|
>>
|
>>>
|
<<
|
|
>
|
>=
|
<
|
<=
|
==
|
!=
|
|
|
&
|
|
|
|
^
|
|
|
|
|
|
|
|
|
&&
|
|
|
|
||
|
|
|
|
?:
|
|
|
|
=
|
Op=
|
|
|
lowest
|
|
|
|
0 comments:
Post a Comment