Give a oneline C expression to test whether a number is a power of 2?
# include <stdio.h> void main() { int n; scanf("%d",&n); if( n & (n-1) ) printf("Not a Power of 2"); else printf("Power of 2"); }