26.6.08

Give the one line code to tell the given number is power of '2' or not.

The "C" code snippet is here:
  int main()
{
int num;

printf("Enter a number other than Zero \n");
scanf("%d", &num);

num&(num-1)?printf("Not a Power of 2 \n"):printf("Power of 2 \n");

return 0;
}