Sumedh

Write a C program to find power of two in one line




#include <stdioh.h>

int main()
{
  int isPow;
  int x = 8;
  isPow = x && !( (x-1) & x );
  printf("%i\n",isPow);
}





Copyright © 2002 - 08 Sumedh K