C Programming Code Examples C > Bitwise Operators Code Examples C Program to Count the Number of Trailing Zeroes in Integer C Program to Count the Number of Trailing Zeroes in Integer #include <stdio.h> void main() { int j = 31, i, count = 0; unsigned int x; int b[32] = {0}; printf("enter the number:"); scanf("%d", &x); while (x != 0) { if (x & 1 == 1) { break; } else { count++; x = x >> 1; } } printf("\n%d", count); }