int fun(int n)
{
int table={0,1,1,2,1,2,2,3,1,2,2,3,2,3,3};
int count=0;
for(;n;n>>=4)
count=count+table[n&oxf];
return(count);
}
what will return inn the following function fun()?
a)it returns number of 0's in the number.
b)it returns number of 1's in the number
c)it returns number of 0's and 1's in the number
d)none of the above.