Answers for "count 1's bit in c++"

C++
1

count bit 1 c++

returns the number of set bits in a integer.
cout<< __builtin_popcount (11); //1011
//Ouput: 3
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language