How does this work &,| ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How does this work &,| ?

Can you explain me, please?

22nd Jul 2018, 1:16 PM
Anna Nepomnyashchaya
Anna Nepomnyashchaya - avatar
1 Answer
+ 10
bitwise operator first convert the number in bits then &-> is for multiply the bits and |-> is for adding the bits position by position ex:- 4 & 5 4->0100 5->0101 0100 *0101 ----------- 0100 so answer is (4) ----------- here are some lessons which will explain you well https://www.sololearn.com/learn/4072/?ref=app https://www.sololearn.com/learn/4073/?ref=app
22nd Jul 2018, 1:28 PM
GAWEN STEASY
GAWEN STEASY - avatar