value of c define changes unexpectedly

Posted by NomeN on Stack Overflow See other posts from Stack Overflow or by NomeN
Published on 2010-04-18T21:18:14Z Indexed on 2010/04/18 21:23 UTC
Read the original article Hit count: 193

Filed under:
|

I have a lot of #define's in my code. Now a weird problem has crept up.

I have this:

#define _ImmSign    010100

(I'm trying to simulate a binary number)

Obviously, I expect the number to become 10100. But when I use the number it has changed into 4160.

What is happening here? And how do I stop it?

© Stack Overflow or respective owner

Related posts about c

    Related posts about define