Write a function that returns the number of bits that are “on” (set to 1) in a byte. How can you make this function as fast as possible?
int countBits(unsigned char aByte)
{
{
Leave a comment
If you are including code in your comment, place it within a <div class='code'></div> tag for better formatting.
No Comments so far
Leave a comment