WD interview question

Basic bit-manipulation questions in C.