Trouble understanding the solution


#1

I am not able to understand the solution especially this particular line

oneCount += (num & 1 << i) != 0? 1 : 0;

It would be better if someone could do help in doing a dry run of the example too.