17th Jan 2018, 4:15 PM
++EviSolo
2 Answers
+ 6
5 = 101 in binary 9 = 1001 in binary 10 = 1010 in binary The | (bitwise or) operator returns 1 if either of the bits is 1 so, 5 | 5 = 101 | 101 = 101 = 5 10 | 9 = 1010 | 1001 = 1011 = 11 5 + 11 = 16
17th Jan 2018, 4:25 PM
Cool Codin
Cool Codin - avatar
0
Thx a lot... now i understand
17th Jan 2018, 4:27 PM
++EviSolo