Pls if someone can compile me this program and check if it works since i need to send it now to a company because i don't have a compiler at home . I would be grateful
thanks
#include <stdio.h>
#include <stdlib.h>
// For examle the user is to enter an integer
main() {
int sum=0;
int number;
int i;
int mask=1;
printf("Please enter an integer\n");
scanf("%d", number);
for (i=0; i< sizeof(int); i++) {
if ( number & mask ) sum++;
mask << 1;
}
printf("The number of ones in %d is %d", number, sum);
}