On Sat, 29 Aug 1998, Glynn Clements wrote:

> 
> Moshe Zadka 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...
> > 
> > There is none. One of the major problems in C...
> 
> Huh? In all of the time that I've been using C, I have never felt any
> need to specify numbers in binary.
> 
OK, I want the first and fourth bit of a byte (cause the flags there
matter to me, say) x&0x9 can be used, but x&0b1001 seems a bit clearer.
No?
--
Moshe Zadka <[EMAIL PROTECTED]>       |    (\_/)   
What's Yellow and Complete?A Bananach Space|(  =(^Y^)= 
Being smart means being able to count to 20| \_(m___m)
without taking off your shoes - Micky Mouse|(originally by jgs)

Reply via email to