I am currently working on a script which find and print the base-10 integer denoting the maximum number of consecutive 's in 's binary representation.
I would like someone to explain for me a line, which is as follows:
n = (n & (n<<1));
I know that n<<1
moves the binary number of n to left, but about the rest of the code?