2-Operators Flashcards
+
Adds two operands
*
Multiplies two operands
–
Decrements integer by one
%
Remainder after integer division
==
checks if two operands are equal
> =
checks if left operand is greater than or equal to the right
!=
checks if two operands are not equal
!
Used to reverse the logical state of its operand
||
if any of the two operands is non zero than the condition becomes true
&
bitwise AND
=
Assigns values from the right side operands to the left side
/=
Divides the left operand with the right and assigns the result to the left operand
sizeof()
Returns the size of the variable
?:
Conditional expression; If condition is true? than value X: otherwise value Y
-=
Subtracts the right operand from the left and assigns the result to the left operand