Finding out no of 1's in a given no ??How to find number of bit set in any given number ? Say int x=7; Number of 1's set in x are 3
How to use map with hex values??[code] #include <iostream> int count=0; using namespace std; int getBit(int n, int k) { unsigned ...
Bit operation and look-up tableHere am i doing in right way ???? Its giving me result like bit wise set into equivalent hexadecimal...
Bit operation and look-up tableIs there any utility or library provides a simple function to convert a hex to binary and then depen...
How to find position of bit set in a binary number??[code] #include <iostream> #include <limits> void doBinaryJunk(unsigned n) { unsigned mask = 1 ...
This user does not accept Private Messages