+ 1

12&8=(1000)2=______ & is used to AND two number bit wise?

20th Dec 2018, 7:51 AM
Zeshan Ahmed
Zeshan Ahmed - avatar
2 Antworten
+ 2
I don't really understand your question, but the & operator is used for bitwise comparison of two numbers: 12 = 0b1100 08 = 0b1000 & - - - - - - - - - = 0b1000 => 12 & 8 = 8
20th Dec 2018, 8:24 AM
Anna
Anna - avatar
+ 6
12 = (1100)₂ 8 = (1000)₂ 1100 1000 & _____ 1000 = 8
20th Dec 2018, 8:22 AM
Babak
Babak - avatar