Operators Flashcards
+
Addition
-
Subtraction
*
Multiplication
/
Division
%
Modulo Operator
Evaluates to the remainder of the division of two integer operands.
24%10 = 24/10 = 2 with remainder 4 = 4
==
Equality Operator
Evaluates to true if left and right sides are equal
!=
Equality Operator
Evaluates to true if left and right sides are not equal
<
Relational Operator
Left side is less-than right side
>
Relational Operator
Left side is greater-than right side
< =
Relational Operator
Left side is less-than-or-equal to right side
> =
Relational Operator
Left side is greater-than-or-equal to right side
AND
Logical Operator
Both operands are true
OR
Logical Operator
At least one of the operands is true
NOT
Logical Operator
When the one operand is false