What does the following function do?
int fn(unsigned int x)
{
int count = 0;
for(; x!=0; x&=(x-1))
count++;
return count;
}
Correct Answer: Returns the minimum number of bits required to represent the number x
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C Programming MCQ Questions