c preprocessor error

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);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top