Let be a an unsigned int:
unsigned int a = 188; // 10111100
Is there a built-in function to get minor bit that is turn on? For example: in a case should return 2because first and second bits are zero's but the third is one.
// 10111100
// ^
// |-- Minor bit turn on
I'm using GCC and C99 standard.