What is the difference between && and & | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between && and &

5th Aug 2020, 5:42 PM
Citrus
Citrus - avatar
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)
5th Aug 2020, 9:25 PM
george
george - avatar