in bitwise calculation, as how the binary of 10 would be 1010 and for 4 would be 0100 ? pls proof it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

in bitwise calculation, as how the binary of 10 would be 1010 and for 4 would be 0100 ? pls proof it.

Help

5th Nov 2020, 7:14 AM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
2 Answers
+ 11
2^3 2^2 2^1 2^0 1 0 1 0 ↓ ↓ ↓ ↓ 8*1 4*0 2*1 1*0 ↓ ↓ ↓ ↓ 8 + 0 + 2 + 0 = 10 Similarly , U can figure out how 0100 results in 4. Hope that helps..
5th Nov 2020, 7:25 AM
Alphin K Sajan
Alphin K Sajan - avatar
5th Nov 2020, 8:02 AM
Benjamin Jürgens
Benjamin Jürgens - avatar