Asked by Izzy
Can somebody explain this to me?
``` if( (j & 1) == 0) ```
``` if( (j & 1) == 0) ```
Answers
Answered by
oobleck
j & 1 (bit-wise AND) is the value of the least significant bit of j.
So, this checks to see whether j is even.
So, this checks to see whether j is even.
There are no AI answers yet. The ability to request AI answers is coming soon!