Bloomberg Interview Question

First on site 2. A question about bitwise operations.

Interview Answer

Anonymous

Oct 2, 2015

They've provided a function which set a specific bit in a number to zero using bitwise shifts, masks and so on, and once again I was supposed to guess the meaning of the function and explain it step-by-step. After that they also asked me to provide a real-world example where resetting a single bit in a number can be useful and I told about network protocol headers.