Fog Creek Software
Discussion Board




Counting

How to count number of 1's & 0's in byte irrespective of the size ?

Rajesh.Duggirala
Sunday, February 16, 2003

This question does not seem very well defined.

Are you asking for how many digits in the number are 0 or 1? Or are you asking how to determine the number of bits set or not set in a binary number?

Darrell
Tuesday, March 04, 2003

*  Recent Topics

*  Fog Creek Home