+ 2
Explain me this code pls
2 Respostas
+ 9
Smiley Hope it helps you
https://www.sololearn.com/learn/4073/?ref=app
+ 3
Binary or "|" ,compares the bits of two numbers and
returns 1 if 1and 0,
1 if 1 and 1,
0 if 0 and 0
Binary value of 5 is =>0b101
0b101
0b101 with or operator results in
0b101
Binary value of 10 is 0b1010
0b1010
0b0101 with or operator results in
0b1111
0b101 is equivalent to 5 in decimal number system and 0b1111 is equivalent to 15
So 5+15=20