Toshiba Interview Question

C-program/algorithm to count number of bits set to 1 in a 32-bit integer.