Can anyone tell me the best way to check the number of bits in a number ? for ex, in 2 set bits are1 , in 3 it is 2. So what is best way today available so as to get that value ? thanks. just give me link of algo, i wana code it myself. Give me hint or algo's link. thanks in advance.
I_m_rude
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude commented: very nice explained! ;) +2
I_m_rude
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
I_m_rude
neeratyoy.mallik 0 Newbie Poster
I_m_rude
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.