SyntaxFix
Write A Post
Hire A Developer
Questions
x & 1 is equivalent to x % 2.
x & 1
x % 2
x >> 1 is equivalent to x / 2
x >> 1
x / 2
So, these things are basically the result and remainder of divide by two.