19/34
Part 5 of 7 · Alignment and growthLearn and do
For an align of 1 or more, align & (align - 1) is 0 exactly for powers of two
Alignments are powers of two, and one bit trick checks that in a line.
print(8 & 7, 12 & 11, 0 & -1)
What do 8 & 7 and 12 & 11 give?
Pick one to see what it prints.
Pick an answer above to see the rest