int fun(int n)
{
int table={0,1,2,1,2,2,3,1,2,2,3,2,3,3,4};
int count =0;
for(;n;n>>4)
count=count + table[n & oxf];
return(count);
}
what will fun() return?
1.returns no.of 0's in the number
2.returns no.of 1's in the number
3.returns no.of 0's and 1's in the number
4.none