Question:What does the following function do?
int fn(unsigned int x) { int count = 0; for(; x!=0; x&=(x-1)) count++; return count; }
A Returns the minimum number of bits required to represent the number x
B Returns the number of zero bits present in the number x
C Returns the number of 1 bits(bits having one) in the number x
D Returns the square root of the number
E None
+ AnswerC
+ Report