Question: int count_bits(unsigned int *array, int size); The function accepts two arguments. The first is a pointer to an array of integers. The second is the
int count_bits(unsigned int *array, int size);
The function accepts two arguments. The first is a pointer to an array of integers. The second is the number of integers in the array. The function counts the total number of set bits in the array. For example, if the array contained this (in hex):
d6275066 88718a3d
The function call should return 29.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
