Broadcom Interview Question

write a c program the returns the number of ones in a binary number