& 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
1.4m articles
1.4m replys
5 comments
57.0k users