New course! Every coder should learn Generative AI!
Try a free lesson0
What is the difference between && and &
1 Answer
0
&& logical 'and' operator(gives true if both condition true in all other cases gives false)
& Bitwice 'and' operator(concatenate bits return 1 if both bits is 1 otherwice return 0) previous post has example
if you use bitwice operator in if statement u need some mask to detect if statement is true or not)