$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #273

What goes in the blank?

# clear the lowest set bit
x = x ____ (x - 1)

Answer: & (also accepted: &, and)

Subtracting one flips the lowest set bit and everything below it; ANDing clears it.
Play Problem Solving ▸