CP I/O Q54

0. The following 'C' program
{
unsigned int num;
int c=0
scanf("%u",&num);
for(;num;num>>=1)
{
if(num &1)
c++;
}
printf("%d",c);
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *