I'm using Keil to developing C8051 programs. In C51, we can type 0xff to input a hex number, so how to type a binary number? On the Internet someone said we can type for example 0b00010001 to express a binary number, but it seems does not work. Thanks for your help!!
The 'C' programming language has no way to enter binary literals. This is standard, ANSI 'C' - it has nothing specifically to do with Keil or C51.
As noted, you can play "clever tricks" with macros if you wish...
Second time this question has come up this week:
e2e.ti.com/.../752363.aspx
Good to see someone has got enough spare time to keep check on every forum in the whole world to keep track of such statistics.
>>Second time this question has come up this week:
>>Good to see someone has got enough spare time to keep check on every forum in the whole world to keep track of such statistics. Indeed !
Indeed !
LOL
View all questions in Keil forum