@@ -0,0 +1,10 @@
#include "bit_lib.h"
int bit_count(unsigned int number) {
int count = 0;
while (number) {
count += number & 1; // если младший бит = 1 → +1
number >>= 1; // сдвиг вправо
}
return count;
The note is not visible to the blocked user.