& is bitwise. && is logical.
&
&&
& evaluates both sides of the operation. && evaluates the left side of the operation, if it's true, it continues and evaluates the right side.
true
2.1m questions
2.1m answers
60 comments
57.0k users