Comparison operators are used in logical statements to determine equality or difference between variables or values.
Logical operators are used to determine the logic between variables or values.
Conditional (Ternary) Operator:
variablename = (condition) ? value1:value2
Comparing Different Types:
Comparing data of different types may give unexpected results.
Bit operators work on 32-bit numbers.
Any numeric operand in the operation is converted into a 32-bit number.
x = 5 & 1;
The result in x: