We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I use a binary number so that the compiler understand it?
This is what I've done:
10101010b
But the compiler gives an error: syntax error near 'b'
The 'C' programming language does not support binary notation - just Octal, Decimal, and Hex.
Keil C51 does not provide any language extension to support binary notation.
You can kludge it with preprocessor macros - and a 'Search' should quickly find the many previous discussions of this...
c-faq.com/.../base2.html
Take the b and make it MC