MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/Brian_Kernighan’s_algorithm.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int main()
30{
31 int n = -1;
32
33 cout << n << " in binary is " << bitset<32>(n) << endl;
34 cout << "The total number of set bits in " << n << " is "
35 << countSetBits(n) << endl;
36
37 return 0;
38}

Callers

nothing calls this directly

Calls 1

countSetBitsFunction · 0.85

Tested by

no test coverage detected