- Joined
- Jun 29, 2010
- Messages
- 1
- Reaction score
- 0
can anybody tell me what is wrong in below code
i'm getting syntax error at ISPOWOF2(32) line
#include <stdio.h>
#include <stdlib.h>
#define ISPOWOF2(n) (!(n & (n-1))
int main()
{
int a = ISPOWOF2(32);
printf("%d\n", a);
system("PAUSE");
return (0);
}
i'm getting syntax error at ISPOWOF2(32) line
#include <stdio.h>
#include <stdlib.h>
#define ISPOWOF2(n) (!(n & (n-1))
int main()
{
int a = ISPOWOF2(32);
printf("%d\n", a);
system("PAUSE");
return (0);
}