& 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
548k questions
547k answers
4 comments
86.3k users