Can someone explain this code ,which finds the number of set bits in a number . I am completely unable to understand it. asked 29 Jun '14, 12:37

@bhanu1993 Hi, I think following tutorial should help you. It also has other methods to count set bits in an integer. Counting the number of set bits in an integer. Thanks, Hope this helps answered 29 Jun '14, 13:38
@Crucifix , this is the place i took it from , but unable to understand..
(29 Jun '14, 13:42)
