Operators
& distinction and &&
& operator in two ways: (1) bit and; (2) a logical AND.
&& operator is shorted and operation. Logic and with short circuit and the difference is very great, although both left and right ends requires operators Boolean values are true value of the entire expression is true. && is called short-circuit operation, because if the value of the expression on the left && is false, the expression on the right will be directly shorted out, it will not carry out operations.
Note: Logical OR operator (|) and short circuit or operator (||) of the difference as well.