int num; /* holds the integer value */num & (num-1) ? printf("Not Power of 2\n") : printf("Power of 2\n");