/* Check whether the given number x is equal to the value 2 power i or not using BITWISE operators ONLY */ #include int main() { long x; printf("Enter a number : "); scanf("%ld",&x); if ((x & 0x1) == 0x0) // Given number x is equal to the value 2 power i printf("The given number %ld is EQUAL to the value 2 POWER something",x); else printf("The given number %ld is NOT EQUAL to the value 2 POWER something",x); return 0; } /* End of Main */