James wrote:

> How do you use binary numbers in C? i'm sure i once knew...
>
> i know you prefix 0x to numbers for Hex, 0 for octal, what's binary...
>
> --
> [EMAIL PROTECTED]                http://x-map.home.ml.org


Offhand I know of no such "binary " conversion specifiers, functions,
etc. in C although it is often easy enough to write a function that will
display the binary equivalent of a value or enable input in binary
0100101 format .

Otherwise there are the bitwise operators, such as bitwise AND, OR,
etc... which enable bitwise manipulations of data. Also the left shift
<<,  and right shift >> operators...   But there is now way of working
with binary data in the same manner as with deciman, hex, or octal...

However, I don't know if this is what you are looking for...

--
email: [EMAIL PROTECTED]
Local mailserver  , remote

Just say no, to the death penalty!

Reply via email to