Hi everyone:
when we wanna use hex numbers in C, we usually write something like:
int hex_num = 0x12F9;
but how can I declare a binary number in a similar way by putting some
leading words to tell the complier this is a binary number???
similarly, in printf, we have %d for an decimal number %x and %o for hex and
octal numbers... how about binary numbers??
Thank you very much...
--
{ Kelvin@!!! }
when we wanna use hex numbers in C, we usually write something like:
int hex_num = 0x12F9;
but how can I declare a binary number in a similar way by putting some
leading words to tell the complier this is a binary number???
similarly, in printf, we have %d for an decimal number %x and %o for hex and
octal numbers... how about binary numbers??
Thank you very much...
--
{ Kelvin@!!! }
Comment