0
Can someone explain this?
x=5; x=x&3; print x in a java program.
3 Answers
+ 2
Nuwan Thisara , bitwise and "&" compare bit by bit the binary representation of both numbers and the bit on a certain position is set to 1 if the bits of that position of the numbers are 1, otherwise 0.
Look at the code đ±
https://code.sololearn.com/c741c5oygBj3/?ref=app
0
TheWhÂĄteCat đ§đŹ Thank you. Got it. đ
0
You are welcome Nuwan Thisara đ±