&
— Logical AND (AND)
&&
— Abbreviated AND
|
— Logical OR (OR)
||
— Abbreviated OR
^
— Logical XOR (exclusive OR (OR))
!
— Logical unary NOT
&=
— AND with assignment
|=
— OR with assignment
^=
— XOR with assignment
==
— Equal
!=
— Not equal
?:
- Ternary (ternary) conditional operator operator To me, as a beginner, most of them are clear, and those that are not clear can be googled. But Google didn’t answer me, what is the difference between logical AND (OR) and abbreviated one? What is the fundamental difference (if any). In what cases can one or another operator be used? Thank you.
GO TO FULL VERSION